FiPy cannot shutdown LTE when no SIM card is present #160
Description
Purpose: Try to reach low power consumption when LTE modem is not used, by shutting down LTE
Problem: FiPy cannot shutdown LTE when no SIM card is present
(sysname='FiPy', nodename='FiPy', release='1.17.3.b1', version='v1.8.6-849-83e2f7f on 2018-03-19', machine='FiPy with ESP32', lorawan='1.0.2', sigfox='1.0.1')
When using the code shown below and without a SIM card present:
import machine
lte = network.LTE()
lte.deinit()
I expected the LTE to be shutdown (rather quickly), however after a long time an OSError is thrown.
I think it is strange in the first place that the LTE is on after booting when no SIM card is present and secondly that shutting down the LTE because you will not use it results in an exception when no SIM card is available (there is no SIM card available because you will not use LTE!)