summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
authorDaniël van de Giessen <daniel@dvdgiessen.nl>2024-02-28 12:35:37 +0100
committerDamien George <damien@micropython.org>2024-11-13 13:11:32 +1100
commit77406b4240b0489963782a7f18920ba3c5d11263 (patch)
tree5b526ea94531f3e7167356f8e2b97abc003ae058 /docs/esp32/tutorial
parent161e2bd37df70556ef2a276c53af2c0cdc79af5f (diff)
downloadmicropython-77406b4240b0489963782a7f18920ba3c5d11263.tar.gz
micropython-77406b4240b0489963782a7f18920ba3c5d11263.zip
extmod/network_ppp: Allow stream=None to suspend PPP.
This allows the stream to be set to `None`, which essentially stops all PPP communication without disconnecting the session. This allows replacing the stream on-the-fly to suspend it, for example to send AT commands to a modem without completely disconnecting and re-establishing the PPP connection: uart = ppp.config('stream') ppp.config(stream=None) uart.write(b'+++') # do some AT commands uart.write(b'ATO\r\n') ppp.config(stream=uart) Any attempted communication by PPP while the stream is not connected will register as simple packet loss to the LwIP stack because we return 0 for any write calls, and protocols like TCP will then automatically handle retrying. Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions