Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to decode sensor payload in TTNv3 #108

Open
wn1980 opened this issue Jun 5, 2022 · 2 comments
Open

How to decode sensor payload in TTNv3 #108

wn1980 opened this issue Jun 5, 2022 · 2 comments

Comments

@wn1980
Copy link

wn1980 commented Jun 5, 2022

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?

@wn1980
Copy link
Author

wn1980 commented Jun 5, 2022

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

@Zupayruna1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants