adopt to esp_modem changed api

This commit is contained in:
Bogdan Pilyugin 2022-08-31 18:15:52 +02:00
parent 3df77385a4
commit cf83fe7487
3 changed files with 2 additions and 4 deletions

View File

@ -29,7 +29,6 @@
#include "freertos/event_groups.h"
#include "mqtt_client.h"
#include "esp_netif.h"
//#include "esp_modem_api.h"
#include "esp_log.h"
typedef struct

View File

@ -202,8 +202,8 @@ static void GSMInitTask(void *pvParameter)
}
ESP_LOGI(TAG, "IMSI:%s", mod_info.imsi);
mod_info.oper[0] = 0x00;
while (esp_modem_get_operator_name(dce, mod_info.oper) != ESP_OK)
mod_info.oper[0] = 0x00; int tech = 0;
while (esp_modem_get_operator_name(dce, mod_info.oper, &tech) != ESP_OK)
{
if (++GSMConnectTimeout >= PPP_MODEM_TIMEOUT)
goto modem_init_fail;

View File

@ -182,7 +182,6 @@ static HTTP_IO_RESULT HTTPPostAdaptersSettings(httpd_req_t *req, char *PostData)
#endif
#if CONFIG_WEBGUIAPP_GPRS_ENABLE
char tmp[32];
bool TempIsGSMEnabled = false;
if (httpd_query_key_value(PostData, "gsmen", tmp, sizeof(tmp)) == ESP_OK)
{