fix at_connect bug, remove AT+QISTATE cmd

This commit is contained in:
MarcusXing 2018-08-16 22:18:41 +08:00
parent b81bbf4077
commit ac5047bcfd
1 changed files with 1 additions and 3 deletions

View File

@ -886,7 +886,7 @@ static void urc_connect_func(const char *data, rt_size_t size)
RT_ASSERT(data && size);
sscanf(data, "%*[^0-9]%d,%d", &socket , &result);
sscanf(data, "+QIOPEN: %d,%d", &socket , &result);
if (result == 0)
{
@ -1224,8 +1224,6 @@ static void ec20_init_thread_entry(void *parameter)
}
/*Use AT+CEREG? to query current EPS Network Registration Status*/
AT_SEND_CMD(resp, 0, 300, "AT+CEREG?");
/* Query Socket Service Status */
AT_SEND_CMD(resp, 0, 300, "AT+QISTATE?");
/* Use AT+COPS? to query current Network Operator */
AT_SEND_CMD(resp, 0, 300, "AT+COPS?");
at_resp_parse_line_args_by_kw(resp, "+COPS:", "+COPS: %*[^\"]\"%[^\"]", &parsed_data);