HI all,
Back in 2018/2019 I developed an application that used a FiPy/Pysense combination to monitor site environmental conditions and then transmit the data via cellular using Cat M1 on the Telstra network.
The lte() code ended up being very simple…see below (import commands etc. not included).
def connectLTE():
print("Instantiating LTE...")
global lte
lte=LTE()
print("LTE Instantiated...")
print("Attaching LTE...")
try:
lte.attach()
while not lte.isattached():
pycom.rgbled(0xffd7000)
time.sleep(1.0)
print("LTE attached...")
pycom.rgbled(0xff00)
except Exception:
disconnectLTE()
print("Connecting to LTE...")
try:
lte.connect()
while not lte.isconnected():
time.sleep(0.1)
print("LTE conected...")
time.sleep(5)
except Exception:
disconnectLTE()
disconnectLTE()
This worked flawlessly for 12 months before it was switched off. Recently I started a project to use a GPy/Pytrack for a GPS tracking application and wanted to again send the data over cellular. When I couldn’t get the GPy to even attach, I went back to the original FiPy/Pysense application and now it won’t attach/connect either.
Question is…has something change in the procedure for connecting FiPy/GPy to lte() over the last 12-18 months?