This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:remotelab:ume:smartme:m2 [2019/10/29 10:58] – pczekalski | en:iot-open:remotelab:ume:smartme:m2 [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| === Prerequisites === | === Prerequisites === | ||
| == Liquid Crystal == | == Liquid Crystal == | ||
| - | For this library, you may refer to the [[en: | + | For this library, you may refer to the [[en: |
| == DHT == | == DHT == | ||
| - | For this library, you may refer to the [[en: | + | For this library, you may refer to the [[en: |
| Line 42: | Line 42: | ||
| It will be possible to display the value of the temperature, | It will be possible to display the value of the temperature, | ||
| Start | Start | ||
| - | This exercise is to be considered as closely related to the M1 exercise. This means that if you want to reproduce a complete experiment, you have to book at least two nodes of the lab, and then you have to run both M1 and M2 sketches, one per node. | + | This exercise is to be considered as closely related to the M1 exercise. This means that if you want to reproduce a complete experiment, you have to book at least two nodes of the lab, and then you have to run both IM1 and IM2 sketches, one per node. |
| === Steps === | === Steps === | ||
| Line 56: | Line 56: | ||
| == Step 2 == | == Step 2 == | ||
| - | Instantiate the software controller component for the LCD display. Then assign to the ethernet interface a MAC and IP address, the latter valid for the internal laboratory network (192.168.0.0/ | + | Instantiate the software controller component for the LCD display. Then assign to the ethernet interface a MAC and IP address, the latter valid for the internal laboratory network (192.168.0.0/ |
| <code c> | <code c> | ||
| Line 85: | Line 85: | ||
| == Step 3 == | == Step 3 == | ||
| - | Initialize the display and the Ethernet connection with IP and MAC address. Then launch the connection() function and initialize the MQTT client with the shift.io broker. You can visualize your device stream, after a successful connection, here: https:// | + | Initialize the display and the Ethernet connection with IP and MAC address. Then launch the '' |
| - | We suggest doing all of the above in the setup() function, as follows: | + | We suggest doing all of the above in the '' |
| <code c> | <code c> | ||
| Line 104: | Line 104: | ||
| == Step 4 == | == Step 4 == | ||
| - | Implement loop() to try connecting until success, as follows: | + | Implement |
| <code c> | <code c> | ||
| Line 138: | Line 138: | ||
| </ | </ | ||
| - | === M1_sub.cpp === | + | === IM2_sub.cpp === |
| <code c> | <code c> | ||
| #include < | #include < | ||