It is possible to use binary data in QMTPUB command and QMTRECV notification on M66? Could you provide some examples?
I would like to use M66 to communicate with MQTT broker where data is binary. I know that MQTT specs support it, but I’m not sure that MQTT implementation in M66 allow this.
I’m looking for GSM modem with MQTT implementation.
@dmajewski I have not tried it with MQTT stack of MC60, but have sent and received binary data to a MQTT broker via SSL functionality of MC60 module and to me there should be no issues in sending binary data via QMTPUB command/
Dear Sir,
You can have a try to send binary data via command QMTPUB, if you meet any issue, please tell us, we will try our best to help you to solve it. Thanks!
Since with MQTT Publish, the data sent (after received the > char from the modem) can be binary, the issue is that end of data is Ctrl-Z so 0x1B code. So if your binary data contains 1B byte, it will discard the rest of the data.