This commit is contained in:
2022-03-17 13:36:05 +01:00
parent ef3c600ec3
commit 179a32ce77
+2 -1
View File
@@ -128,6 +128,7 @@ def init_modems() -> list:
def on_message_received(ch, method, properties, body): def on_message_received(ch, method, properties, body):
print(str(body))
print(" [x] Received {} {}".format(body, datetime.datetime.now())) print(" [x] Received {} {}".format(body, datetime.datetime.now()))
# parse the received message # parse the received message
result = ReserveResultPojo.from_json(body) result = ReserveResultPojo.from_json(body)
@@ -198,7 +199,7 @@ def start_book():
if modem.contact: if modem.contact:
logger.info("contact found for this ccid") logger.info("contact found for this ccid")
signal = modem.modem.signalStrength signal = modem.modem.signalStrength
logger.info("signal for this sim: "+str(signal)) logger.info("信号强度: "+str(signal))
commandor.start_page(modem.contact) commandor.start_page(modem.contact)
start_to_handle_sms(modem) start_to_handle_sms(modem)
except Exception as error: except Exception as error: