When decoding a payload, I always receive the JSON as ‘object’ via MQTT. Changing ‘data’ to something else returns an error which is why I expected the object to be called ‘data’ not ‘object’. Is this editable?
function decodeUplink(input) {
return {
data: Decode(input.bytes)
};
}
function Decode(bytes) {
//decoding
}