Quantcast
Channel: MultiTech Developer Resources » All Posts
Viewing all articles
Browse latest Browse all 7111

Conduit AEP + RN2483 base64 decoding problem

$
0
0

Hello,

I am facing the problem during decoding Base64 data received from Microchip RN2483.

When I send byte with value higher than 0x7F I get 0xef or 0xbf or 0xbd value in NodeRed message payload.

Example

RN2483: mac tx cnf 25 AABBCC

Conduit “up” topic output: {“chan”:7,”cls”:0,”codr”:”4/5″,”data”:”qrvM”,”datr”:”SF7BW125″,”freq”:”869.9″,”lsnr”:”9″,”mhdr”:”8001000000000b00″,”modu”:”LORA”,”opts”:”",”port”:25,”rfch”:1,”rssi”:-93,”seqn”:11,”size”:4,”timestamp”:”2017-01-18T08:46:42.811087Z”,”tmst”:4164092996} (received data are correct – Base64 encoding)

Conduit Node-Red msg payload decoded to hex:
efbfbd (wrong data)

*function used to decode:
var payloadRawData = new Buffer(msg.payload);
msg.payload = payloadRawData[0].toString(16) + payloadRawData[1].toString(16) + payloadRawData[2].toString(16);
return msg;

Any idea what could be wrong?

Best regards
Radim Malinowski


Viewing all articles
Browse latest Browse all 7111

Trending Articles