BobGlicksman / LoRa_experiments

tests of LoRA module ranging and low power
0 stars 1 forks source link

With logging - D0 to set LoRa address #22

Closed jschrempp closed 3 hours ago

jschrempp commented 4 hours ago

In the Hub, when booting the LoRa device parameters are set. By default the LoRa is given the device address of the Hub.

With this change, grounding D0 will cause the LoRa device to be initialized with a device address between 1 and 10 so that the LoRa module can be used in a sensor. This is useful for using the Hub to change LoRa settings for testing.

If D0 is left ungrounded or unconnected then there is no change to previous behavior and the LoRa module will be given the Hub address (as defined in the code with a constant).