Hi all, first of all want to say thanks to loboris for the example, it helped me a lot.
For now I could connect to internet for almost 24h without the module getting disconnected, the thing is when it disconnects it doesn't call the callback so the FSM doesn't continue and the program gets stuck.
Also, I have tried to remove the SIM card while the module is connected just to see 'what happens', I see the follow:
-Module registration goes off (led_wwan# turns off)
-The task which send POST to a server returns: "mbedtls_net_connect returned -52" which is * (see below)
-Can't see the callback being called neither
So why could ppp layer not be detecting the disconnection?
I initialize ppp layer like loboris example. Am I missing something?
Any advice or workaround I can try will be much apreciated.
Thanks in advance.*
Code: Select all
#define MBEDTLS_ERR_NET_UNKNOWN_HOST -0x0052 /**< Failed to get an IP address for the given hostname. */