ESP32: persistent PPP needed
Currently PPP tries to connect during some time, around 10 seconds
and then it gives up. After the timeout, PPP's serial traffic which looks
like !}!}!} }4}"}&} } } } }%}&y is no longer active at serial line and other
end (pppd linux) can't establish connection after timeout.
In application I would need PPP to continuously be active
because if I restart PPP by deleting its instance and creating again
after ESP32 has connected to WiFi, then PPP will spoil WiFi routing
and I don't want this to happen.
Additionaly - is this bug? This won't manually restart PPP after timeout:
ppp.active(False)
ppp.active(True)
Does nothing, while I think it should reactivate PPP traffic to
attempt connection on serial line, the chars !}!}!} }4}"}&} } } } }%}&y
should appear again
esp32/network_ppp: Add a timeout for closing PPP connection.
A fix for issue #4708 .
A limitation with this: once the PPP is deactivated (ppp.active(0)) it cannot be used again. A new PPP instance must be created instead.