support multi modem pools

This commit is contained in:
2022-04-15 15:54:54 +02:00
parent 5df5d79f4d
commit 401f20eb09
4 changed files with 35 additions and 23 deletions
+4
View File
@@ -124,3 +124,7 @@ class ModemPool:
def _execut_USSD_cmd(self, cmd, ser) -> bytes:
# the timeout for ussd command can be 120 s in mac
return self._send_command(cmd, ser, 120)
def close(self):
for serial in self._serial_list:
serial.close()