things4u / ESP-1ch-Gateway

Version 6 of the single channel gateway
MIT License
370 stars 149 forks source link

View device keys #50

Open Samuel-ZDM opened 4 years ago

Samuel-ZDM commented 4 years ago

Hello!

I'm trying to get the keys for the devices, like nwkKey, appKey and ID. I saw that in the configNode.h file there is a struct with these values, but I couldn't get them.

Can you help me?

platenspeler commented 4 years ago

Hi Samuel,

The nwkKey and ID's are in the concole of TTN. You set these yourself when annoncing devices to the network. https://console.thethingsnetwork.org/applications/..../.... Search for "console ttn" on google.

I copy the keys directly from the console into the struct.

Maarten

Samuel-ZDM commented 4 years ago

Yes. When the gateway is like a repeater, does the gateway not obtain keys from the devices? Does the gateway relay messages without knowing the keys?

Thank you very much.