can read contact info from excel

This commit is contained in:
2022-02-21 10:37:18 +01:00
parent 16efab25a3
commit 921457b934
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -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)
+3 -1
View File
@@ -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
+3
View File
@@ -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