Open terryding77 opened 2 years ago
I never get the ip from ppp dialog, and I find write PDP_CONTEXT s command not work for my sim7020;
MODEM_CHECK(dce->define_pdp_context(dce, 1, "IP", CONFIG_EXAMPLE_COMPONENT_MODEM_APN) == ESP_OK, "set MODEM APN failed", err);
but it works if I read the CONTEXT:
command
AT+CGDCONT?
got answer
+CGDCONT: 1,"IP","CMNBIOT","100.121.10.100",0,0,0,,,,0,,0,,0
so I comment the PDP_CONTEXT function in above code.
By searching pppos support, I find your issue in esp-idf project, and I meet some similar problem in my code.
With the code in official pppos example
I got the output like this.
with your project code (I try to reformat code with idf project structure)
I got the output like this