PPP: LTE IMEI renamed to IMSI.
This commit is contained in:
parent
e0d5daee47
commit
af97500976
@ -50,7 +50,7 @@ class LTE():
|
|||||||
def _netlight_irq(self, pin):
|
def _netlight_irq(self, pin):
|
||||||
self._led.value(pin.value())
|
self._led.value(pin.value())
|
||||||
|
|
||||||
def imei(self):
|
def imsi(self):
|
||||||
try:
|
try:
|
||||||
return self._send_at_command("AT+CIMI", 1)
|
return self._send_at_command("AT+CIMI", 1)
|
||||||
except CellularError:
|
except CellularError:
|
||||||
@ -140,7 +140,7 @@ class LTE():
|
|||||||
self._send_at_command("AT+CSSLCFG=\"authmode\",0,0")
|
self._send_at_command("AT+CSSLCFG=\"authmode\",0,0")
|
||||||
self._send_at_command("AT+CSSLCFG=\"enableSNI\",0,1")
|
self._send_at_command("AT+CSSLCFG=\"enableSNI\",0,1")
|
||||||
|
|
||||||
print(f" - cellular IMEI is {self.imei()}")
|
print(f" - cellular IMSI is {self.imsi()}")
|
||||||
|
|
||||||
def _wait_ready(self, poll_time=0.25, timeout=10):
|
def _wait_ready(self, poll_time=0.25, timeout=10):
|
||||||
giveup = time.time() + timeout
|
giveup = time.time() + timeout
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user