How to use MQTTPUB or MQTTPUBSEND to send binary data?
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: How to use MQTTPUB or MQTTPUBSEND to send binary data?
by scarlet ·
Hello, this is scarlet.

First of all, [MQTTPUB] is a command used for general strings.
It is correct to use the [MQTTPUBSEND] command for binary data.
I am attaching the screen that I tested here.
It appears that you have written code to send a message from the MCU via UART.
If you’re using a module, have you tried sending commands using a serial program (ex. tera term)?
When developing with WizFi360, we recommend verifying the command transmission process with a serial program before proceeding with development on the MCU side.
If there’s an issue when testing with the serial program, please attach the log and feel free ask to me.