payload_raw
or payload_fields
provided by the TNT Integration.payload_raw
or payload_fields
, as required by TTN network.Application Id
dropdown, and then navigate to the other plugin sections.uplink
and downlink
processors. It is also possible to test the code by providing a sample input data both for uplink
and downlink
.Custom
payload format but does not provide a decoder
function, this method will receive the raw payload encoded in base64. In this case, it will be necessary to write a function to transform this base64 data to a JSON object.Cayene LPP
payload format, TTN will automatically convert the binary data to a JSON object that can be used directly by the platform. In this case, it is not necessary to define custom uplink method unless you want to do some extra processing like incorporate calculated fields.Custom
payload format and provides a decoder
function, this function will receive the output from TTN function. In this case, creating a custom uplink method will be redundant, so create the funtion in TTN, or in the plugin.temperature
and humidity
parsed from the binary data.downlink
property (that is automatically initialized if Initialize Downlink Data
is configured in the plugin), this method will receive the JSON content of this property. It usually consists on a user-friendly device configuration that should be later encoded to binary in base64.downlink
property. converter
.converter
for your payloads, this method can return a JSON object that will be accesible in the converter
method. In this case, creating a custom downlink method will be redundant, so create the funtion in TTN, or in the plugin.app_id
, dev_id
, donwlink_url
, metadata
, or the actual payload information sent by LoRa devices on payload_fields
or payload_raw
fields, depending on the Payload formats configured in the TTN application.dev_id
field. device
, It saves information like app_id
, dev_id
, hardware_serial
, port
, counter
, and downlink_url
.metadata
field for further analysis.payload_raw
or payload_fields
before its use in the platform.decoder
, that is a custom function that can be configured for each application. It can also parse data encoded by the Cayenne LPP binary format easily.