PPPoS APN Authentication
Posted: Mon Mar 13, 2023 11:24 pm
I think it is a very basic question, but I can't authenticate my APN with the 4.3 example, so, I add this line esp_netif_ppp_set_auth...
ESP-IDF example 4.3:
https://github.com/espressif/esp-protoc ... ent_main.c
The User and Pass for the APN is the same: "datatem".
What I am missing?
ESP-IDF example 4.3:
https://github.com/espressif/esp-protoc ... ent_main.c
Code: Select all
/* Configure the PPP netif */
esp_modem_dce_config_t dce_config = ESP_MODEM_DCE_DEFAULT_CONFIG("inlog.claro.com.br");
esp_netif_config_t netif_ppp_config = ESP_NETIF_DEFAULT_PPP();
esp_netif_t *esp_netif = esp_netif_new(&netif_ppp_config);
if(esp_netif_ppp_set_auth(esp_netif, NETIF_PPP_AUTHTYPE_PAP,"datatem","datatem") != ESP_OK){ESP_LOGE(TAG,"ERROR 140");}