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

Handling of binary protocol is untested on esp8266 so far.
This commit is contained in:
Paul Sokolovsky 2016-04-30 20:39:35 +03:00
parent 006ffe1561
commit 962d5a987f
1 changed files with 2 additions and 0 deletions

View File

@ -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)