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

add LORA-MAC

parent e7435503
No related branches found
No related tags found
No related merge requests found
# boot.py -- run on boot-up
from network import LoRa
import ubinascii
# lora = LoRa()
lora = LoRa(mode=LoRa.LORA, region=LoRa.EU868)
print("DevEUI: %s" % (ubinascii.hexlify(lora.mac()).decode('ascii')))
#print("DeviceEui Hex Payload " + ".join({:02x}".format(x) for x in lora.mac()))
{
"py_ignore": [
".vscode",
".gitignore",
".git",
"env",
"venv"
],
"name": "lora-mac"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment