ソースを参照

Add support for unkown provider overseas

Test with T mobile in the UK.
Jianjia Ma 4 年 前
コミット
b57615904a
1 ファイル変更5 行追加0 行削除
  1. 5 0
      class/sim800c/at_device_sim800c.c

+ 5 - 0
class/sim800c/at_device_sim800c.c

@@ -767,6 +767,11 @@ static void sim800c_init_thread_entry(void *parameter)
             /* "CT" */
             LOG_I("%s device network operator: %s", device->name, parsed_data);
         }
+        else
+        {
+            AT_SEND_CMD(client, resp, 0, 300, "AT+CSTT");
+            LOG_I("%s device network operator: %s", device->name, parsed_data);
+        }
 
         /* the device default response timeout is 150 seconds, but it set to 20 seconds is convenient to use. */
         AT_SEND_CMD(client, resp, 0, 20 * 1000, "AT+CIICR");