Skip to content
Snippets Groups Projects
Commit 962d5a98 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/scripts/webrepl: Switch to using _webrepl object wrapper.

Handling of binary protocol is untested on esp8266 so far.
parent 006ffe15
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import uos
import network
import websocket
import websocket_helper
import _webrepl
listen_s = None
client_s = None
......@@ -32,6 +33,7 @@ def accept_conn(listen_sock):
client_s = cl
websocket_helper.server_handshake(cl)
ws = websocket.websocket(cl, True)
ws = _webrepl._webrepl(ws)
cl.setblocking(False)
# notify REPL on socket incoming data
cl.setsockopt(socket.SOL_SOCKET, 20, uos.dupterm_notify)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment