PPPoS APN Authentication

rafapcardoso
Posts: 4
Joined: Mon Mar 13, 2023 11:06 pm

PPPoS APN Authentication

Postby rafapcardoso » 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

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");}
The User and Pass for the APN is the same: "datatem".
WhatsApp Image 2023-03-13 at 20.23.58.jpeg
WhatsApp Image 2023-03-13 at 20.23.58.jpeg (219.35 KiB) Viewed 676 times
What I am missing?

rafapcardoso
Posts: 4
Joined: Mon Mar 13, 2023 11:06 pm

Re: PPPoS APN Authentication

Postby rafapcardoso » Wed Mar 15, 2023 3:50 pm

After a bit painful update, I am using the ESP-IDF 5.0.1, I hope I don't have such problem in this version.
I am struggling with some environment variables and some deprecated functions, new version new problems, but no need this answer anymore.
Tks.

Who is online

Users browsing this forum: Bing [Bot] and 210 guests