things4u/ESP-1ch-Gateway

How to decode sensor payload in TTNv3

Opened this issue · 2 comments

Hi everybody.

I have successfully compiled the 1ch gateway as a sensor node (by setting #define_GATEWAYNODE 1) on the Heltec ESP32 LoRa v2. The gateway seems to send the uplink to TTN. However, I don't know how to decode the payload (such as battery value) in a human-readable format. Could anyone suggest a solution to this issue?

I found the Sensor format document. However, how to implement it in TTNv3 (function decodeUplink(input)) as described in this page.

you need to check how the gateway are sending the data,
if the data is just pure bytes u can check this thread -> https://www.thethingsnetwork.org/forum/t/decrypting-messages-for-dummies/4894/29

I'm using this examples for encode and decode data