Can be able to add a context to the downlink sent to TTN


#1

I am writing some value in the context of a variable using HTML Widget Example{“test1”:1, “test2”:2} and I want to call this context in the body ok the event when I trigger.

The example which I did is
{
“dev_id”:“11”,
“port”:1,
“payload_fields”:
{
“payload”:context
}}

I am sending this downlink to TTN and I am not receiving any data in TTN. If I change the “payload”:1(some value) I am receiving the data in TTN.

Could anyone help me with this? for sending the context as my data to TTN


#2

Greetings, actually the alert supports only one level json as payload field, so you have to set in your event the key that you wish to retrieve in your payload field and to add as many as you need. Please refer to the example gif below

All the best


#3

Thank you. Now I got a solution.