can read otp

This commit is contained in:
2022-02-21 15:26:50 +01:00
parent 921457b934
commit 4877fdcdde
5 changed files with 90 additions and 83 deletions
+7 -3
View File
@@ -1,13 +1,17 @@
from dataclasses import dataclass
from gsmmodem import GsmModem
from pojo.contact_pojo import ContactPojo
@dataclass
class SerialModem():
ccid: str
phone_number: str
phone_number = None
modem: GsmModem
contact: ContactPojo
contact = None
def __init__(self, modem: GsmModem):
def __init__(self, modem: GsmModem, ccid: str = None):
self.modem = modem
self.ccid = ccid