Lora: Documentation vs. Example code regards OTAA
-
@robert-hh said in Lora: Documentation vs. Example code regards OTAA:
https://github.com/pycom/pycom-libraries/blob/master/examples/lorawan-nano-gateway/otaa_node.py
Looking at the firmware source code:
https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/mods/modlora.c#L1573It seems either is fine, if you don't provide the
dev_eui
it is automatically set to the devices lora mac, otherwise it uses what ever was provided.
-
Documentation:
https://github.com/pycom/pycom-documentation/blob/master/chapter/tutorials/lopy/lorawan-otaa.md
Line 25:
lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)Example code:
https://github.com/pycom/pycom-libraries/blob/master/examples/lorawan-nano-gateway/otaa_node.py
Line 24:
lora.join(activation=LoRa.OTAA, auth=(dev_eui, app_eui, app_key), timeout=0, dr=config.LORA_NODE_DR)
-
@robert-hh said in Lora: Documentation vs. Example code regards OTAA:
dev_eui
Hi,
Could you provide a link to where you find this discrepancy?