Skip to content

Commit 59cd278

Browse files
authored
Merge pull request #154 from majianjia/master
Add support for unkown provider overseas (SIM800c)
2 parents 2878647 + b576159 commit 59cd278

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

class/sim800c/at_device_sim800c.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,11 @@ static void sim800c_init_thread_entry(void *parameter)
767767
/* "CT" */
768768
LOG_I("%s device network operator: %s", device->name, parsed_data);
769769
}
770+
else
771+
{
772+
AT_SEND_CMD(client, resp, 0, 300, "AT+CSTT");
773+
LOG_I("%s device network operator: %s", device->name, parsed_data);
774+
}
770775

771776
/* the device default response timeout is 150 seconds, but it set to 20 seconds is convenient to use. */
772777
AT_SEND_CMD(client, resp, 0, 20 * 1000, "AT+CIICR");

0 commit comments

Comments
 (0)