add slot_position and sim_position

This commit is contained in:
2022-03-25 22:44:43 +01:00
parent a025c8c9fa
commit cd8d837aaf
4 changed files with 24 additions and 18 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ class ModemPool:
self._log_sender.send_log(phone_number, source=self.TAG, subject=SUBJECT_SIM_INFO,
type=LOG_APPOINTMENT_SUCCESS)
# write the number to sim card's phonebook
cmd = f'AT+CPBW={self.phone_number_position},\"{phone_number}\"\r'
self._send_command(cmd, ser, wait_time_in_s=2)
# cmd = f'AT+CPBW={self.phone_number_position},\"{phone_number}\"\r'
# self._send_command(cmd, ser, wait_time_in_s=2)
def _select_sim_storage(self, ser) -> bool:
# use SIM Card storage