No ACL setup yet! Denying access to everyone.
en:edu:zmitac:s2:aih:lab:stm32mqtt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:edu:zmitac:s2:aih:lab:stm32mqtt [2024/01/17 14:36] – ktokarz | en:edu:zmitac:s2:aih:lab:stm32mqtt [2024/01/17 14:46] (current) – ktokarz | ||
|---|---|---|---|
| Line 53: | Line 53: | ||
| AT+MQTTCONN=0," | AT+MQTTCONN=0," | ||
| </ | </ | ||
| + | < | ||
| + | The last parameter is the reconnect flag. If 1 the modem will reconnect automatically after the connection with the broker is lost, if 0 it will not reconnect automatically. | ||
| + | </ | ||
| After a successful connection to the MQTT broker, we can subscribe to the chosen topic or publish messages. | After a successful connection to the MQTT broker, we can subscribe to the chosen topic or publish messages. | ||
| < | < | ||
| Line 63: | Line 66: | ||
| Please refer to the MQTT lesson for the details. | Please refer to the MQTT lesson for the details. | ||
| </ | </ | ||
| + | If some other device publishes the data using the topic we subscribe the modem will send the information including the topic' | ||
| + | < | ||
| + | +MQTTSUBRECV: | ||
| + | </ | ||
| + | for example: | ||
| + | < | ||
| + | +MQTTSUBRECV: | ||
| + | </ | ||
en/edu/zmitac/s2/aih/lab/stm32mqtt.1705498578.txt.gz · Last modified: by ktokarz
