No ACL setup yet! Denying access to everyone.
en:edu:zmitac:macro:iot:lab
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:edu:zmitac:macro:iot:lab [2024/04/21 16:17] – [Laboratory scenarios] pczekalski | en:edu:zmitac:macro:iot:lab [2024/04/21 16:17] (current) – [Laboratory scenarios] pczekalski | ||
|---|---|---|---|
| Line 240: | Line 240: | ||
| </ | </ | ||
| - | The sensor class returns data (among others) in a float containing temperature (in C) and relative humidity (in percent): | + | The sensor class returns data (among others) in a float containing temperature (in C) and relative humidity (in per cent): |
| <code c> | <code c> | ||
| ... | ... | ||
| Line 258: | Line 258: | ||
| Report: | Report: | ||
| - | * When using ESP in STA mode, observe whether the solution' | + | * When using ESP in STA mode, observe whether the subsequent running |
| * Include source code. | * Include source code. | ||
| < | < | ||
| Line 267: | Line 267: | ||
| Use your solution from the last step of Lab4 and also Lab3. Measure temperature and humidity, present them on the screen as in the case of the Lab3 scenario, and parallel, publish them as MQTT messages to the Broker. | Use your solution from the last step of Lab4 and also Lab3. Measure temperature and humidity, present them on the screen as in the case of the Lab3 scenario, and parallel, publish them as MQTT messages to the Broker. | ||
| <note important> | <note important> | ||
| - | Using any software-based MQTT client, subscribe to the messages using a PRIVATE or PUBLIC network and observe results. You can use a PC computer | + | Using any software-based MQTT client, subscribe to the messages using a PRIVATE or PUBLIC network and observe results. You can use a PC to develop a solution for this task. |
| The simplest starting point is to use the pub-sub MQTT client library: | The simplest starting point is to use the pub-sub MQTT client library: | ||
| Line 335: | Line 335: | ||
| Note that receiving messages requires periodical execution of the '' | Note that receiving messages requires periodical execution of the '' | ||
| - | Advanced: | + | **Advanced**: |
| * Implement a "last will" informing that the device has lost connection (suddenly, not via disconnect)—present the last available measurements as persistent. Present the device state by changing a persistent message on connect/ | * Implement a "last will" informing that the device has lost connection (suddenly, not via disconnect)—present the last available measurements as persistent. Present the device state by changing a persistent message on connect/ | ||
| Line 352: | Line 352: | ||
| - | Report: | + | **Report**: |
| * Provide your MQTT message Topics and Payload formats (semantics). | * Provide your MQTT message Topics and Payload formats (semantics). | ||
| * Include source code. | * Include source code. | ||
| < | < | ||
en/edu/zmitac/macro/iot/lab.1713709029.txt.gz · Last modified: by pczekalski
