From a5abc5bbfeb4c73f3d7fe765f25a5720d0804dc6 Mon Sep 17 00:00:00 2001 From: nkotilainen Date: Wed, 25 Sep 2024 13:43:43 +0100 Subject: [PATCH] PPP: LTE IMSI printout changed to ICCID. --- micropython/modules_py/lte.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/micropython/modules_py/lte.py b/micropython/modules_py/lte.py index d2faf07..18689a3 100644 --- a/micropython/modules_py/lte.py +++ b/micropython/modules_py/lte.py @@ -50,9 +50,9 @@ class LTE(): def _netlight_irq(self, pin): self._led.value(pin.value()) - def imsi(self): + def iccid(self): try: - return self._send_at_command("AT+CIMI", 1) + return self._send_at_command("AT+CICCID", 1) except CellularError: return None @@ -140,7 +140,7 @@ class LTE(): self._send_at_command("AT+CSSLCFG=\"authmode\",0,0") self._send_at_command("AT+CSSLCFG=\"enableSNI\",0,1") - print(f" - cellular IMSI is {self.imsi()}") + print(f" - SIM ICCID is {self.iccid()}") def _wait_ready(self, poll_time=0.25, timeout=10): giveup = time.time() + timeout