Problem - MQTT WizFi310 publish to thingspeak channels
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Problem - MQTT WizFi310 publish to thingspeak channels
by wizdaniel ·
there is a way to connect to MQTT broker and publish data.
please refer to the following MQTT Commands in WizFi310.
WizFi310 Version 1.0.3.6 (WIZnet Co.Ltd)
at+wset=0,Dap
[OK]
at+wsec=0,00001111
[OK]
at+wnet=1
[OK]
at+wjoin
[Link-Up Event]
IP Addr : 192.168.1.35
Gateway : 192.168.1.1
[OK] # finish association with AP
AT+SDNAME=iot.eclipse.org
# set Broker Domain if you want to use DNS
[OK]
AT+MQTTSET=tefdf,tesdfdf,60
[OK]
AT+MQTTSET=tefdf,tesdfdf,300
[OK]
AT+MQTTSET=tefdf,tesdfdf,301
# now we provide MQTT keep alive time 30s ~ 300s
[ERROR: INVALID INPUT]
AT+MQTTCON=1,0.0.0.0,1883,0
# set broker IP to "0.0.0.0" if you want to use DNS
[MQTT CONNECT]
[OK]
AT+MQTTSUB=1,channels/254968/publish/XXZZ11SHLHX5EXX
# subscribe topic "channels/254968/publish/XXZZ11SHLHX5EXX"
[OK]
AT+MQTTPUB=channels/254968/publish/XXZZ11SHLHX5EXX,33
# publish 33-bytes data to your topic "channels/254968/publish/XXZZ11SHLHX5EXX"
[33]
# you have to input your data(33-bytes) after "[33]" message. 33 is a length of your data
[OK]
# if you fill the data you decided to publish, you can find "[OK]" response.
{Q,channels/254968/publish/XXZZ11SHLHX5EXX,33}field1=100&field2=160&status=sent
# this is a message that WizFi310 received, because you already have subscribed to the same topic with publish