can read contact info from excel
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user