Created
April 11, 2018 10:43
-
-
Save EdsonAlcala/9eebd853741d4a414fcfb6b7e3b756b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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