Sending downlink using POSTMAN in V3

Hello all,

I need one help, I am trying to send downlink using postman but only Fport is getting displayed not the payload , pls help me in this regard this is bit urgent for me.

I am providing following details for your reference

URL: - https://example.industries/api/v3/as/applications/itc-ib-board-smart-irrigation/webhooks/azure-webhook/devices/device_id/down/push

body: -

{
“downlinks”: [
{
“decoded_payload”: {
“Sampling_Freq”: 5
},
“f_port”: 1,
“priority”: “HIGH”,
“confirmed”: true
}]
}

also added the authorization in the code

API: - Bearer NNSXS..NFEPLCG***********.

downlink payload formatters in TTI

function encodeDownlink(input) {
var bytes_data = ;
bytes_data.push(input.Sampling_Freq);
bytes_data.push(input.Valve_Control);
return {
bytes: bytes_data,
fPort: 1,
warnings: ,
errors:
};
}

function decodeDownlink(input) {
return {
data: {
bytes: input.bytes
},
warnings: ,
errors:
}
}

result: -

its just printing forward downlink data message Fport: 1 only in live data not any payload fields,

please help me thank you in advance.

Does the JSON you send match your encodeDownlink function? (Hint, it doesn’t)

Try using the examples in the documentation to start with something that works as a downlink, even if it’s not sending the data you want, then alter it one thing at a time.

There are formatting tools in a little toolbar at the top of this entry box, please make use of them.

1 Like

I have one question, does frm_payload field has to be there to send downlink?

Wasting people’s time on the public forum as well as via private messages is equally irritating.

Read the documentation for the working example and you totally ignored my question which is actually going to fix the problem as you are probably generating an error, which you are probably getting an error message in the console.