summaryrefslogtreecommitdiff
path: root/extmod/webrepl/webrepl.py
AgeCommit message (Collapse)Author
2022-09-08drivers: Remove drivers that are now in micropython-lib.Jim Mussared
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-07-23extmod/webrepl: Allow the page to run from the device (over HTTP).Jim Mussared
The device will respond to a non-WS request with a simple page that loads websocket_content.js from a static host (http or https). However, even if the resources are https, the page is still http and therefore allows requesting to a WS (not WSS) websocket on the device. Removed unused client_handshake from websocket_helper, and then merges the remainder of this file (server_handshake) into webrepl.py (to reduce firmware size). Also added the respond-as-HTTP handling to server_handshake. The default HTTP response is a simple page that sets the base URL and then loads webrepl_content.js which document.write's the actual HTML. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-05-24extmod/webrepl: Fix setting password in foreground mode and factor code.iabdalkader
The password was not being set when running in foreground mode. Duplicate code has been removed.
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-12-20extmod/webrepl: Move webrepl scripts to common place and use manifest.Jim Mussared
Move webrepl support code from ports/esp8266/modules into extmod/webrepl (to be alongside extmod/modwebrepl.c), and use frozen manifests to include it in the build on esp8266 and esp32. A small modification is made to webrepl.py to make it work on non-ESP ports, i.e. don't call dupterm_notify if not available.