Cannot import lora library
I'm having a problem when uploading the final project file to the board. I had updated both the pysense board and the firmware ( v 1.18.3). When I try this piece of code:
from network import lora
As in the examples, the board responds with this message.
ImportError: cannot import name lora
My project folder it's something like this :
. -LTR329ALS... .py
What could I be doing wrong ?
ShanevanJ last edited by
from network import LoRa import socket import ubinascii import struct # Initialise LoRa in LORAWAN mode. # Please pick the region that matches where you are using the device: # Asia = LoRa.AS923 # Australia = LoRa.AU915 # Europe = LoRa.EU868 # United States = LoRa.US915 lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868)