How to know to which LoRa Nano-Gateway the LoPy Connects
-
I am new to LoPy (and Lora in general). Something is not clear to me in the LoRa Nano-Gateway (Raw LoRa) examples.
How can I set as node to which gateway I connect and as a gateway how do I know which connections to accept?
Thank you for helping me out here.
Geert
-
@grtvhecke said in How to know to which LoRa Nano-Gateway the LoPy Connects:
do you need to check in code the device and send an ack or not depending to this ID
Yes
-
@robert-hh said in How to know to which LoRa Nano-Gateway the LoPy Connects:
TTN
Thank you for the reply. I was referring to the Nano-Gateway and not to the WAN gateway. In the gateway example the messages are received by the gateway and also handled by the gateway. So I wondered how to know to which one to connect or do you need to check in code the device and send an ack or not depending to this ID?
Thank you,
Geert
-
@grtvhecke You cannot. That's the idea of TTN. Every gateway forwards every Mote's messages to the TTN server. This server assigns the incoming messages to your application.
Since messages are encrpyted end-to-end, the gateway cannot look into the payload.
If you define your own protocol, you can do what you like.