I have data arriving in my application and can see the payload is correct as a series of hex bytes (actually just the string “Hello World”.plus the counter. All good. Now how do I decode the payload in the application console?
I though that ‘payload formats’ sounding encouraging. I added some javascript to this and saved it.
function Decoder(bytes, port) {
// Decode plain text; not recommended
return String.fromCharCode.apply(null, bytes);
}
Nothing happened. is something supposed to happen? Am I supposed to see the decoded payload when I click on the data tab?
This all worked with AWS IoT and LORIOT, but I was surprised to see this does not seem to do anything in TTN? What am I missing here?
When I paste in a payload from the data arriving and hit test it says:
Error("Decoder not valid: does not return an object")
thanks
Simon