How to restart the pppos lib?

I am trying to connect to the network again after losing the net connectivity with my GSM module and ESP32.
the internet gets disconnected due to the range issue. but I want to handle that state as my network gets back.
what’s happening is when my network loses, it goes in the infinite loop of the disconnected network. and it shows cloud discounted (0): error and it comes back only after restarting my ESP32. but is it possible to restart pppos using any command or code snippet? please let me know.
Thank You.

1 Like