Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:practical:hardware:sut:stm32:iot_4 [2024/04/27 09:27] ktokarzen:iot-open:practical:hardware:sut:stm32:iot_4 [2024/04/27 09:41] (current) ktokarz
Line 90: Line 90:
 In our case, the command can look like this: In our case, the command can look like this:
 <code> <code>
-AT+MQTTUSERCFG=0,1,\"STM32#0001\",\"vrel\",\"vrel2018\",0,0,\"\"+AT+MQTTUSERCFG=0,1,\"STM32#0001\",\"username\",\"password\",0,0,\"\"
 </code> </code>
  
Line 105: Line 105:
 The command can look like this: The command can look like this:
 <code> <code>
-AT+MQTTCONN=0,\"192.168.1.90\",1883,1+AT+MQTTCONN=0,\"192.168.1.100\",1883,1
 </code> </code>
  
Line 170: Line 170:
  
 ===== FAQ ===== ===== FAQ =====
-**Can I subscribe to more than one topic?**: Yes, you can. For every incoming message you would receive the information on the topic of this specific message, so you would be able to recognise them.+**My MQTT client disconnects randomly**: The most common reason is you're using a non-unique MQTT client name. Please change it to some other (even random generated) and give it another try.\\ 
 +**Can I subscribe to more than one topic?**: Yes, you can. For every incoming message you would receive the information on the topic of this specific message, so you would be able to recognise them.\\ 
 +**How do I send messages to which I am subscribed?**: Use a software client, such as [[http://mqtt-explorer.com/| MQTT Explorer]], if you're able to access the "internal IoT" network (you're in the range of the network). If you're remote, the only way is to book another device and implement a client publishing a message with the appropriate topic, as presented in the scenario [[[en:iot-open:practical:hardware:sut:stm32:iot_3|]]. Our MQTT broker is also visible in the campus network on the wired interfaces so that you can access it, e.g. via EduVPN or from the laboratory computers. Refer to the supervisor for IP and credentials.\\ 
 +**Do I need to authorise to publish and subscribe?**: Yes, you do. The supervisor provides the user and password on demand, also presented in the Node's technical documentation.
  
 <WRAP noprint> <WRAP noprint>
en/iot-open/practical/hardware/sut/stm32/iot_4.1714210072.txt.gz · Last modified: 2024/04/27 09:27 by ktokarz
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0