diff --git a/main.py b/main.py index 2e3b040..356cd7a 100644 --- a/main.py +++ b/main.py @@ -114,6 +114,7 @@ if __name__ == '__main__': modem_list = [] for port in get_devices_ports(): modem_list.append(create_modem_for_port(port)) + # cmd = "AT+CMEE=2\r" # send_command(cmd) diff --git a/pojo/contact_pojo.py b/pojo/contact_pojo.py index e97c0e5..da1e156 100644 --- a/pojo/contact_pojo.py +++ b/pojo/contact_pojo.py @@ -7,11 +7,13 @@ class ContactPojo: passport: str last_name: str first_name: str + mail: str ccid: str - def __init__(self, phone_number: str, passport_number: str, last_name: str, first_name: str, ccid: str): + def __init__(self, phone_number: str, passport_number: str, last_name: str, first_name: str, ccid: str, mail: str): self.phone = phone_number self.passport = passport_number self.last_name = last_name self.first_name = first_name self.ccid = ccid + self.mail = mail diff --git a/pojo/serial_modem.py b/pojo/serial_modem.py index 9b3590e..239fe07 100644 --- a/pojo/serial_modem.py +++ b/pojo/serial_modem.py @@ -1,10 +1,13 @@ from gsmmodem import GsmModem +from pojo.contact_pojo import ContactPojo + class SerialModem(): ccid: str phone_number: str modem: GsmModem + contact: ContactPojo def __init__(self, modem: GsmModem): self.modem = modem