This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot-open:practical:hardware:sut:stm32:iot_3 [2024/04/27 08:09] – [Steps] ktokarz | en:iot-open:practical:hardware:sut:stm32:iot_3 [2024/04/27 09:42] (current) – ktokarz | ||
---|---|---|---|
Line 85: | Line 85: | ||
In our case, the command can look like this: | In our case, the command can look like this: | ||
< | < | ||
- | AT+MQTTUSERCFG=0, | + | AT+MQTTUSERCFG=0, |
</ | </ | ||
Line 100: | Line 100: | ||
The command can look like this: | The command can look like this: | ||
< | < | ||
- | AT+MQTTCONN=0, | + | AT+MQTTCONN=0, |
</ | </ | ||
Line 116: | Line 116: | ||
=== Step 3 === | === Step 3 === | ||
- | Implement the MQTT configuration and connection to the broker. Use the template for the " | + | Implement the MQTT configuration and connection to the broker. Use the template for the " |
=== Step 4 === | === Step 4 === | ||
Line 122: | Line 122: | ||
==== Result validation ==== | ==== Result validation ==== | ||
- | You should be able to connect to the WiFi and MQTT broker (verified by the status present on the selected display) and then publish a message (once or periodically). Depending on whether you're fully remote or able to access our networks with an additional device, you need to implement a subscriber (as present in the scenario [[[en: | + | You should be able to connect to the WiFi and MQTT broker (verified by the status present on the selected display) and then publish a message (once or periodically). Depending on whether you're fully remote or able to access our networks with an additional device, you need to implement a subscriber (as present in the scenario [[[en: |
+ | <note info> | ||
+ | Because LCD can't properly display some non-visible characters the presented code sometimes shows additional, non-letter characters. It is out of the scope of this scenario to filter these characters out. We leave the task of making visual improvements to your invention. | ||
+ | </ | ||
===== FAQ ===== | ===== FAQ ===== | ||
- | **Can I change the IP address?**: Normally IP addresses are assigned by the server known as DHCP. In some situations, | + | **Can I publish messages on different topics?**: Certainly |
+ | **My MQTT client disconnects randomly**: The most common reason | ||
+ | **Do I need to authorise to publish and subscribe? | ||
<WRAP noprint> | <WRAP noprint> |