adopt to esp_modem changed api
This commit is contained in:
parent
3df77385a4
commit
cf83fe7487
|
|
@ -29,7 +29,6 @@
|
||||||
#include "freertos/event_groups.h"
|
#include "freertos/event_groups.h"
|
||||||
#include "mqtt_client.h"
|
#include "mqtt_client.h"
|
||||||
#include "esp_netif.h"
|
#include "esp_netif.h"
|
||||||
//#include "esp_modem_api.h"
|
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
|
||||||
|
|
@ -202,8 +202,8 @@ static void GSMInitTask(void *pvParameter)
|
||||||
}
|
}
|
||||||
ESP_LOGI(TAG, "IMSI:%s", mod_info.imsi);
|
ESP_LOGI(TAG, "IMSI:%s", mod_info.imsi);
|
||||||
|
|
||||||
mod_info.oper[0] = 0x00;
|
mod_info.oper[0] = 0x00; int tech = 0;
|
||||||
while (esp_modem_get_operator_name(dce, mod_info.oper) != ESP_OK)
|
while (esp_modem_get_operator_name(dce, mod_info.oper, &tech) != ESP_OK)
|
||||||
{
|
{
|
||||||
if (++GSMConnectTimeout >= PPP_MODEM_TIMEOUT)
|
if (++GSMConnectTimeout >= PPP_MODEM_TIMEOUT)
|
||||||
goto modem_init_fail;
|
goto modem_init_fail;
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,6 @@ static HTTP_IO_RESULT HTTPPostAdaptersSettings(httpd_req_t *req, char *PostData)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_WEBGUIAPP_GPRS_ENABLE
|
#if CONFIG_WEBGUIAPP_GPRS_ENABLE
|
||||||
char tmp[32];
|
|
||||||
bool TempIsGSMEnabled = false;
|
bool TempIsGSMEnabled = false;
|
||||||
if (httpd_query_key_value(PostData, "gsmen", tmp, sizeof(tmp)) == ESP_OK)
|
if (httpd_query_key_value(PostData, "gsmen", tmp, sizeof(tmp)) == ESP_OK)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user