-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picoweb.run error #57
Comments
Not enough information provided, but looks like duplicate of #45 |
You must use https://github.com/pfalcon/pycopy . Please read the README. |
All clear, thank you. m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Picoweb on ESP32 devkit v1: one months ago on same board, all ok; tryed on other 2 identhical board, same error.
Here my simple code to test:
`import picoweb
app = picoweb.WebApp(name)
@app.route("/")
def index(req, resp):
yield from picoweb.start_response(resp)
yield from resp.awrite("Hello world from picoweb running on the ESP32")
app.run(debug=True, host="192.168.2.41")
`
Error after end of booting:
` ...
I (2373) network: CONNECTED
I (5213) event: sta ip: 192.168.2.41, mask: 255.255.255.0, gw: 192.168.2.1
I (5213) network: GOT_IP
:: connecting to network "<<<my_ssid> (try 2)"...
:: WLAN connected to ip 192.168.2.41 gateway 192.168.2.1
I (13773) modsocket: Initializing
Traceback (most recent call last):
File "main.py", line 12, in
File "/lib/picoweb/init.py", line 302, in run
File "/lib/uasyncio/core.py", line 129, in run_forever
File "/lib/uasyncio/init.py", line 31, in add_reader
TypeError: function expected at most 3 arguments, got 4
MicroPython v1.11-269-gb29fae0c5 on 2019-09-03; ESP32 module with ESP32
Type "help()" for more information.
`
May be a bug?
Thank you,
Mauro
The text was updated successfully, but these errors were encountered: