After recreating file boot.py and some of my test files i started to test webREPL via Wifi standalone by starting webrepl from main.py
without a serial connection.
Here are the files i use:
boot.py
Code: Select all
import esp
esp.osdebug(None)
import os
import time
import util
import network
ls = os.listdir()
Code: Select all
import webrepl
webrepl.start()
After a soft reset with CTRL-D i can not reconnect.
So when i do the same with a serial REPL i see the following exception from webrepl after hitting ctrl-d in webREPL:
Code: Select all
Terminal ready
>>>
WebREPL connection from: ('192.168.178.26', 54495)
WebREPL connected
>>> ls
['boot.py', 'main.py', 'util.py', 'mqtt.py', 'test.py', 'wlanconnect.py']
>>>
PYB: soft reboot
Traceback (most recent call last):
File "main.py", line 2, in <module>
File "webrepl", line 55, in start
File "webrepl", line 21, in setup_conn
OSError: 12
MicroPython v1.7-205-gb69d1fc on 2016-04-22; ESP module with ESP8266
Type "help()" for more information.
>>>
The board will be deployed at a remote location.
Update:
When retrying this after disconnecting from serial i get the following message in the browser and the webREPL is unresponsive:
Code: Select all
WebREPL connection from: ('192.168.178.26', 54957)