<
From version < 53.7 >
edited by Xiaoling
on 2023/08/02 11:49
To version < 53.5 >
edited by Xiaoling
on 2023/08/02 11:45
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -62,32 +62,32 @@
62 62  [[image:image-20230802112413-3.png]]
63 63  
64 64  
65 -== 3.2 General MQTT Connection ==
65 += 2General MQTT Connection =
66 66  
67 -
68 68  The NB-IoT Sensor can send packet to server use MQTT protocol.
69 69  
70 -Below are the commands.
69 +Below are the commands
71 71  
72 -**AT Commands:**
71 +AT Commands:
73 73  
74 -* **AT+PRO=3,0**  ~/~/  Set to use MQTT protocol to uplink, Payload Type select Hex payload.
75 -* **AT+SERVADDR=120.24.4.116,1883**    ~/~/  Set MQTT server address and port
76 -* **AT+CLIENT=CLIENT**  ~/~/  Set up the CLIENT of MQTT
77 -* **AT+UNAME=UNAME**  ~/~/  Set the username of MQTT
78 -* **AT+PWD=PWD**  ~/~/  Set the password of MQTT
79 -* **AT+PUBTOPIC=NSE01_PUB**  ~/~/  Set the sending topic of MQTT
80 -* **AT+SUBTOPIC=NSE01_SUB**  ~/~/  Set the subscription topic of MQTT
73 +* AT+PRO=3,0 ~/~/  Set to use MQTT protocol to uplink, Payload Type select Hex payload.
74 +* AT+SERVADDR=120.24.4.116,1883    ~/~/  Set MQTT server address and port
75 +* AT+CLIENT=CLIENT        ~/~/  Set up the CLIENT of MQTT
76 +* AT+UNAME=UNAME                      ~/~/  Set the username of MQTT
77 +* AT+PWD=PWD                          ~/~/  Set the password of MQTT
78 +* AT+PUBTOPIC=NSE01_PUB               ~/~/  Set the sending topic of MQTT
79 +* AT+SUBTOPIC=NSE01_SUB           ~/~/  Set the subscription topic of MQTT
81 81  
82 82  [[image:image-20230802112413-4.png]]
83 83  
84 84  [[image:image-20230802112413-5.png]]
85 85  
86 -**Notice: MQTT  protocol has a much higher power consumption compare with UDP / CoAP  protocol. Please check the power analyze document and adjust the uplink  period to a suitable interval.**
85 +Notice: MQTT  protocol has a much higher power consumption compare with UDP / CoAP  protocol. Please check the power analyze document and adjust the uplink  period to a suitable interval.
87 87  
88 88  
89 -== 3.3 [[ThingSpeak>>url:https://thingspeak.com/]] (via MQTT) ==
90 90  
89 += 3. [[ThingSpeak>>url:https://thingspeak.com/]] (via MQTT) =
90 +
91 91  == 1.1 Get MQTT Credentials ==
92 92  
93 93  [[ThingSpeak>>url:https://thingspeak.com/]] connection uses MQTT Connection. So we need to get MQTT Credentials first. You need to point MQTT Devices to ThingSpeak Channel as well.
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0