Last modified by Mengting Qiu on 2025/03/08 11:33
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -117,15 +117,10 @@ 117 117 * (% style="color:#037691" %)**Broker Address:**(%%) mqtt3.thingspeak.com 118 118 119 119 * (% style="color:#037691" %)**Broker Port:**(%%) 1883 120 - 121 121 * (% style="color:#037691" %)**Client ID:**(%%) <Your ThingSpeak MQTT ClientID> 122 - 123 123 * (% style="color:#037691" %)**User Name:**(%%) <Your ThingSpeak MQTT User Name> 124 - 125 125 * (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password> 126 126 127 - 128 - 129 129 === 3.3.2.2 Publish Data to ThingSpeak Channel === 130 130 131 131 [[image:image-20230802112413-9.png]] ... ... @@ -132,44 +132,39 @@ 132 132 133 133 [[image:image-20230802112413-10.png]] 134 134 135 - (% style="color:blue" %)**In MQTT.fx, we can publish below info:**130 +In MQTT.fx, we can publish below info: 136 136 137 -* (% style="color:#037691" %)**Topic:**(%%) channels/YOUR_CHANNEL_ID/publish 132 +* Topic: channels/YOUR_CHANNEL_ID/publish 133 +* Payload: field1=63&field2=67&status=MQTTPUBLISH 138 138 139 -* (% style="color:#037691" %)**Payload:**(%%) field1=63&field2=67&status=MQTTPUBLISH 140 - 141 141 Where 63 and 67 are the value to be published to field1 & field2. 142 142 143 143 144 - (% style="color:blue" %)**Result:**138 +Result: 145 145 146 146 [[image:image-20230802112413-11.png]] 147 147 148 148 149 -== 3.3 Configure NB-IoT Sensor for connection ==143 +== 1.3 Configure NB-IoT Sensor for connection == 150 150 151 -=== 3.3.1 AT Commands: ===145 +=== 1.3.1 AT Commands: === 152 152 153 - 154 154 In the NB-IoT, we can run below commands so to publish the channels like MQTT.fx 155 155 156 -* **AT+PRO=3,1**~/~/149 +* AT+PRO=3,1 ~/~/Set to use ThingSpeak Server and Related Payload 157 157 158 -* **AT+CLIENT=<Your ThingSpeak MQTT ClientID>**151 +* AT+CLIENT=<Your ThingSpeak MQTT ClientID> 159 159 160 -* **AT+UNAME=<Your ThingSpeak MQTT User Name>**153 +* AT+UNAME=<Your ThingSpeak MQTT User Name> 161 161 162 -* **AT+PWD=<Your ThingSpeak MQTT Password>**155 +* AT+PWD=<Your ThingSpeak MQTT Password> 163 163 164 -* **AT+PUBTOPIC=<YOUR_CHANNEL_ID>**157 +* AT+PUBTOPIC=<YOUR_CHANNEL_ID> 165 165 166 -* **AT+SUBTOPIC=<YOUR_CHANNEL_ID>**159 +* AT+SUBTOPIC=<YOUR_CHANNEL_ID> 167 167 161 +=== 1.3.2 Uplink Examples === 168 168 169 - 170 -=== 3.3.2 Uplink Examples === 171 - 172 - 173 173 For S31-NB 174 174 175 175 For SE01-NB ... ... @@ -195,9 +195,8 @@ 195 195 For SN50V3-NB 196 196 197 197 198 -=== 3.3.3Map fields to sensor value ===188 +=== 1.3.2 Map fields to sensor value === 199 199 200 - 201 201 When NB-IoT sensor upload to ThingSpeak. The payload already specify which fileds related to which sensor value. Use need to create fileds in Channels Settings. with name so to see the value correctly. 202 202 203 203