use only one card pool

This commit is contained in:
2022-03-18 09:21:06 +01:00
parent 73f53bf689
commit f4533eeb1d
6 changed files with 28 additions and 25 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ class SerialModem():
def get_ccid(self):
cmd = "AT+CCID\r"
self.modem.connect()
self.modem.connect("0000")
print("try to get ccid")
response = self.modem.write(cmd, True)
self.ccid = response[0].split(" ")[1].replace("\"", "")
print("The SIM card ccid is:" + self.ccid)
print("The SIM phone number is:" + str(self.modem.ownNumber))