configure and upload the arduino code called “Environment_Monitoring” with the Arduino IDE software (on Mac)
The result is:
the joint-request is accepted (OTAA) and the end device is sending data to TTN
The problem:
in TTN > end device > live data, I don’t see data as expected or as described in the guide. I was expecting to see the temp. hum. press. gas values as seen in the first picture below. Instead, I only see SNR and RSSI but no other values as shown in my screenshot below (Actual).
Not sure where is the mistake. Can anyone help in getting correct values/payload?
There was an uplink payload decoder in the guide. However, this is not used because Ubidots has a built-in decoder for RAK1906. If you will use Ubidots and proceed on the tutorial, you can ignore this and still get the final dashboard.
However, if you want to have the payload decoder, you can use this.
It’s a long time since I used TTN, but as far as I know,m the decoder function is not function decodedUplink(bytes) but is should be function Decoder(bytes, fport) and the return value is just decoded, and not {"data":decoded}