MQTTPUBSEND

I installed firmware 1.1.1.9 on my wizFi360. I’m trying to use AT+MQTTPUBSEND to send binary data but it always returns error. is this command handled by this firmware?

Hello, this is WIZnet. I am attaching the screen that I tested here.
image

Did you enter the length of the following data for [AT+MQTTPUBSEND=]?
(ex. AT+MQTTPUBSEND=5 > 12345)
You should enter the length in advance and then transmit data of that length.

Please refer to the command document for more details.

AT+MQTTPUBSEND return always error

AT+RESTORE

OK

ready
WIFI CONNECTED
WIFI GOT IP

OK
AT+CWMODE_CUR=1

OK
AT+CWDHCP_CUR=1,1

OK
AT+CWJAP_CUR="xxxxxxxxxx","xxxxxxxxxxxxxxxx"
WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP

OK

AT+CIPSSLCCONF=0

OK
AT+CIPMUX=1

OK

AT+MQTTSET="xxxxxxxxxxxxxx","xxxxxxxxxxxxxx","xxxxxxxxxxxxxx",60

OK
AT+MQTTTOPIC="xxxxxxxxxxxxxx",""

OK

AT+MQTTCON=0,1,"xxxxxxxxxxxxxx",8883
0,CONNECT

OK
AT+MQTTPUB="0123456789"

OK
TESTIR1234567890 -> 0123456789


AT+MQTTPUBSEND=15

ERROR

AT+MQTTPUBSEND=5

ERROR

AT+GMRAT+GMR
AT version:1.1.2.0(Apr 12 2023 08:08:36)
SDK version:3.2.0(a0ffff9f)
compile time:Apr 12 2023 08:08:36

OK

You’re using MUXID, then the command is [AT+PUBSEND=ID,Legnth ].
The document doesn’t explain it well enough. We’ll fix that part.

example is here.
image

image

1 Like