Skip to content

Instantly share code, notes, and snippets.

@EdsonAlcala
Created April 11, 2018 10:43
Show Gist options
  • Save EdsonAlcala/9eebd853741d4a414fcfb6b7e3b756b1 to your computer and use it in GitHub Desktop.
Save EdsonAlcala/9eebd853741d4a414fcfb6b7e3b756b1 to your computer and use it in GitHub Desktop.
import network
from network import LoRa
import binascii
# Initialize LoRa in LORAWAN mode.
lora = LoRa(mode=LoRa.LORAWAN)
# Display our device address
print(binascii.hexlify(lora.mac()).upper().decode('utf-8'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment