An uplink transformation is a Javascript code snippet used to transform the payload from the LoRaWAN device into resources that can be used directly in the Managed IoT Cloud dashboard. Defining an uplink transformation is done by performing transformations on the payload.

An example of a complete (and simple) uplink transformation is

return {temperature: payload.toString(‘ascii’)}

In this example, a single resource, named temperature, is created from the payload.

You can add several resources to the return statement. For example, if the payload from the device is comma separated. (Example: “23.5, 29”).

The corresponding transformation would be

var data = payload.toString(‘ascii’).split(‘,’)
return {temperature: data[0], humidity: data[1]}

© 2021 Telenor Start IoT

Log in with your credentials

Forgot your details?