Downlink with codec over MQTT problem

Hello,

I created chirpstack v4 demo docker. I applied devices templates and codec. I work example with ST Microelectronic board.

I try MQTT downlink msg on NodeRED, but It doesn’t work codec parser if I don’t fill data value.

For Example:

Not working this packet:

{
        "devEui": "<DEV_EUI>",
        "confirmed": true,
        "fPort": 2,
        "data": "...",
        "object": {
            "led":1
       }
 } 

Working this:

{
        "devEui": "<DEV_EUI>",
        "confirmed": true,
        "fPort": 2,
        "data": Buffer.from(msg.payload.params.led ? "1":"0").toString("base64")
} 

What do I wrong?

references:

Nobody have any ideas? :slight_smile:

Please note that you should only specify data or object, not both. data is used for the raw (binary) data. object will be used by the codec to encode to a raw (binary) payload.

If that doesn’t work, please check the logs. Both the server logs as under device events in the web-interface.

1 Like

Hello @brocaar,

After deleting the data row in the load, it worked.

Ex:
{
“devEui”: “<DEV_EUI>”,
“confirmed”: true,
“fPort”: 2,
“object”: {
“led”:1
}
}

Thanks a lot.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.