Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

EXS82-W: Send binary data using MQTT Client | Telit Cinterion IoT Developer Community

May 17, 2021 - 6:52pm, 3297 views

Hi

Is there a way to send raw data (binary) using the EXS82-W embedded MQTT Client ?

I am using the following connect to broker and publish data:

AT^SICA=1,1
AT^SISS=0,"SrvType","Mqtt"
AT^SISS=0,"conId",1
AT^SISS=0,"address","mqtts://********.amazonaws.com"
AT^SISS=0,"secopt",0
AT^SISS=0,"clientId","EXS82Test"
AT^SISS=0,"cmd","publish"
AT^SISS=0,"Topic","exs82"
AT^SISS=0,"cleanSession",1
AT^SISS=0,"Qos",0
AT^SISS=0,"Retain",0
AT^SISS=0,"hcContent","TestMessage"
AT^SISS=0,"hcContLen",0

AT^SISO=0,2

AT^SISU=0,"subscribe","exs82";0"

AT^SISU=0,"publish","1;exs82;0;;10"

AT^SISW=0,10

    ^SISW: 0,10,0
<send raw data using Docklight software for example: 0x01 0x02 0x03 0x04 0x05 0x00 0x06 0x07 0x08 0x09 >
    ^SIS: 0,0,3520,"exs82"
    ^SIS: 0,2

    ^SIS: 0,0,3488,"topic=exs82; bytes=10"

AT^SISR=0,10

    ^SISR: 0,10
    0x01 0x02 0x03 0x04 0x05 0x00 0x00 0x00 0x00 0x00

 

The bytes sent after the 0x00 probably were ignored. On the receiver side, there is only NULL after the first 0x00.

I am using the defaul character set.