Hello,
I have RAK4600 LPWAN Module. I followed the guide provided on RAK website and successfully sent the data to TheThingsNetwork. But the data on the TTN shows as payload which is encoded. How to decode the data sent from the RAK4600 node.
When I use the following command to send data
at+send=lora:2:0123456789
I receive the following in the TTN console.
PAYLOAD : 303132333435363738390D0A0D0A
I want the data converted back into the original format. Please help me in understanding how data is sent and how can I encode multiple data in the sent data.
function Decoder(bytes, port) {
// Decode an uplink message from a buffer
// (array) of bytes to an object of fields.
var hexStr = bin2HexStr(bytes);
var decoded = {};
decoded.PAYLOAD = hexStr;
// if (port === 1) decoded.led = bytes[0];
return decoded;
}**
You can refer to this sample code.
Hi,
When I send data via at command, it is sent in form of ASCII which then get encoded into HEX and shows on TTN Console.
Is there any way to send data in HEX format from the node i.e RAK4600 to save airtime ?