Node Red integration with Chirpstack

Hi,

I am trying to integrate Node-Red with chirpstack version 4. I have deployed the flow provided in this link

https://www.chirpstack.io/docs/guides/node-red-integration.html#debug-events

The output of “Device event (up)” node is this

{
    "deduplicationId": "b78bcd37-e171-4060-8e51-1c2c1648638a",
    "time": "2022-12-16T12:58:26.491151404+00:00",
    "deviceInfo": {
        "tenantId": "52f14cd4-c6f1-4fbd-8f87-4025e1d49242",
        "tenantName": "ChirpStack",
        "applicationId": "7c7746bb-bc82-41b7-9a32-211fdcb72651",
        "applicationName": "locathost",
        "deviceProfileId": "5fd57ed5-cb76-4e00-ace7-3bdcb223946c",
        "deviceProfileName": "device_profile",
        "deviceName": "Node_506f98000000ac63",
        "devEui": "506f98000000ac63"
    },
    "devAddr": "0000ac63",
    "adr": true,
    "fCnt": 4,
    "fPort": 7,
    "confirmed": true,
    "data": "MA==",
    "rxInfo": [
        {
            "gatewayId": "dabbccffff2a79cb",
            "uplinkId": 35112,
            "rssi": -43,
            "snr": 8,
            "channel": 3,
            "location": {},
            "context": "qRlwdw==",
            "metadata": {
                "region_name": "in865",
                "region_common_name": "IN865"
            }
        }
    ],
    "txInfo": {
        "frequency": 865402500,
        "modulation": {
            "lora": {
                "bandwidth": 125000,
                "spreadingFactor": 12,
                "codeRate": "CR_4_5"
            }
        }
    }
}

The output of the “function” node is this

"MA=="

The output of the “device downlink” node is this

msg.payload : undefined
undefined

What should be the output of the “device downlink” node ?

Function node “on message” property is this

return {
    devEui: msg.payload.deviceInfo.devEui,
    fPort: msg.payload.fPort,
    confirmed: false,
    payload: msg.payload.data
};

Regards,
Harsha

You should set the debug node to output the full payload, not msg.payload :slight_smile:

Yeah I got that. I just didnt update it here.

Thanks for your help.

Regards,
Harsha