Skip to content

Commit

Permalink
if no APP_EUI exists, use default value "0000000000000001"
Browse files Browse the repository at this point in the history
  • Loading branch information
ftylitak committed May 30, 2024
1 parent 548fa4f commit b7f2ff9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion insighioNode/lib/networking/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ def join(cfg, lora_keys):
modem.set_retries(cfg._LORA_TX_RETRIES if cfg._LORA_TX_RETRIES is not None else 0)

modem.set_dev_eui(lora_keys[0])
modem.set_app_eui(lora_keys[1])

if lora_keys[1]:
modem.set_app_eui(lora_keys[1])
else:
_DEFAULT_APP_EUI = "0000000000000001"
modem.set_app_eui(_DEFAULT_APP_EUI)
modem.set_app_key(lora_keys[2])

# join network
Expand Down

0 comments on commit b7f2ff9

Please sign in to comment.