|
TinyPPP
PPP networking over any Arduino Stream
|
PPP network interface for ESP32 (arduino-esp32 3.x): ESP-IDF lwIP PPP via esp_netif, integrated as a NetworkInterface. More...
#include <TinyPPP_ESP32.h>
Classes | |
| struct | Driver |
Public Member Functions | |
| TinyPPP_ESP32 ()=default | |
| TinyPPP_ESP32 (const TinyPPP_ESP32 &)=delete | |
| ~TinyPPP_ESP32 () | |
| bool | begin (Stream &io, UBaseType_t taskPriority=5, BaseType_t core=tskNO_AFFINITY) |
| bool | connected () const |
| true when the link is up and we have an IP address | |
| void | end () |
| Terminates the link and removes the interface. | |
| TinyPPP_ESP32 & | operator= (const TinyPPP_ESP32 &)=delete |
| void | setCredentials (const char *user, const char *password) |
| PAP credentials, if the peer requires authentication (before begin()) | |
| void | setLogger (Print &out) |
| Debug output of the PPP state changes, e.g. setLogger(Serial1) | |
| bool | waitConnected (uint32_t timeoutMs=30000) |
| Waits until we have got an IP address. | |
Protected Member Functions | |
| EventGroupHandle_t | _events () |
| void | log (const char *msg, int32_t id=-1) |
| void | onPppEvent (int32_t id) |
| size_t | printDriverInfo (Print &out) const override |
Static Protected Member Functions | |
| static esp_err_t | postAttach (esp_netif_t *netif, void *handle) |
| static void | postEvent (arduino_event_id_t id) |
| static void | pppEventCb (void *arg, esp_event_base_t base, int32_t id, void *data) |
| static void | rxTask (void *arg) |
| static esp_err_t | transmit (void *handle, void *buffer, size_t len) |
Protected Attributes | |
| Driver | _driver {} |
| EventGroupHandle_t | _eventGroup = nullptr |
| Stream * | _io = nullptr |
| Print * | _log = nullptr |
| String | _password |
| esp_event_handler_instance_t | _pppEventInstance = nullptr |
| volatile uint32_t | _restartAt = 0 |
| volatile bool | _running = false |
| volatile bool | _stopping = false |
| TaskHandle_t | _task = nullptr |
| String | _user |
Static Protected Attributes | |
| static constexpr EventBits_t | DEAD_BIT = BIT0 |
PPP network interface for ESP32 (arduino-esp32 3.x): ESP-IDF lwIP PPP via esp_netif, integrated as a NetworkInterface.
|
default |
|
delete |
|
inline |
|
inlineprotected |
|
inline |
Starts PPP over the indicated stream (e.g. Serial, Serial1). The stream must already be opened. A FreeRTOS task reads the stream in the background. Returns immediately: use connected()/waitConnected().
|
inline |
true when the link is up and we have an IP address
|
inline |
Terminates the link and removes the interface.
|
delete |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
PAP credentials, if the peer requires authentication (before begin())
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticconstexprprotected |