summaryrefslogtreecommitdiff
path: root/docs/esp32
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-03-13 17:09:51 +1100
committerDamien George <damien@micropython.org>2024-08-29 23:46:13 +1000
commitbc952d37fe957adf0165b3403a97d5ada7e8e1a4 (patch)
tree5a353457aaff15e7a04a67f8caba09ec5ec0f9b1 /docs/esp32
parent664dd7b54a220ba6081a8a2d28103cdd1c74b034 (diff)
extmod/network_ppp_lwip: Add network.PPP via lwIP.
This commit adds a new `network.PPP` interface which works on any port that has bare-metal lwIP, eg rp2, stm32, mimxrt. It has been tested on stm32. A board needs to enable `MICROPY_PY_NETWORK_PPP_LWIP` and then it can use it as follows: import network ppp = network.PPP(uart) ppp.connect() while not ppp.isconnected(): pass # use `socket` module as usual, etc ppp.disconnect() Usually the application must first configure the cellular/etc UART link to get it connected and in to PPP mode first (eg ATD*99#), before handing over control to `network.PPP`. The PPP interface automatically configures the UART IRQ callback to call PPP.poll() on incoming data. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions