Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
1 result

Target

Select target project
  • clanglai/tp-lora-cooc
1 result
Select Git revision
  • main
1 result
Show changes
Commits on Source (2)
......@@ -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
......