Skip to content
Snippets Groups Projects
Commit 9456628f authored by LANGLAIS Charlotte's avatar LANGLAIS Charlotte
Browse files

Merge branch 'clanglai-main-patch-78718' into 'main'

Update OTAA/main_template.py

See merge request !1
parents 49903092 726ae09e
No related branches found
No related tags found
1 merge request!1Update OTAA/main_template.py
......@@ -29,7 +29,9 @@ dev_eui = ubinascii.unhexlify('----------------') # replace the dash by the DevE
pycom.rgbled(0xff0000) #red
time.sleep(1)
lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868, device_class=LoRa.CLASS_C)
# configure the parameters of LoRaWAN, authorize adaptive datarate and choose a CLASS C device
lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868, adr=True, device_class=LoRa.CLASS_C)
print('DevEUI : ', binascii.hexlify(lora.mac()).upper())
lora.nvram_restore() #if there is nothing to restore it will return a False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment