First of all, before sending any data we need to open a socket with the commandAT+NSOCR=DGRAM,17,1883
Afterwards, IMSI and PW need to be converted into the hexstring format. This means the
IMSI(ascii) = 012345678912345
IMSI(hexstring) = 303132333435363738393132333435
and the password
PW(ascii) = abcdefgh
PW(hexstring) = 6162636465666768
putting these values into the AT+NSOST command yields:
This means the hexstring version of payload has twice as many symbols
(58) as specified in the number of bytes transferred (29).
I hope that we this guidance everything will be fine.