Browse Source

Merge pull request #154 from majianjia/master

Add support for unkown provider overseas (SIM800c)
xiangxistu 4 years ago
parent
commit
59cd278988
1 changed files with 5 additions and 0 deletions
  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");