Thanks @pfalcon!
I did the update and it works ok now. I can see you have pushed quite a lot of commits today, thanks!
$ git pull --rebase
remote: Enumerating objects: 196, done.
remote: Counting objects: 100% (196/196), done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 196 (delta 101), reused 196 (delta 101), pack-reused 0
Receiving objects: 100% (196/196), 35.22 KiB | 655.00 KiB/s, done.
Resolving deltas: 100% (101/101), completed with 3 local objects.
From
https://github.com/pfalcon/pycopy
+ f1644bca9...ec2bf2fe0 pfalcon -> origin/pfalcon (forced update)
First, rewinding head to replay your work on top of it...
However, I need to turn debugging off (app.run(debug=-1)), otherwise I get:
PYB: soft reboot
scandone
Connection successful
('192.168.0.87', '255.255.255.0', '192.168.0.1', '62.179.1.62')
Traceback (most recent call last):
File "main.py", line 67, in <module>
File "picoweb/__init__.py", line 283, in run
ImportError: no module named 'logging'
MicroPython v1.10-189-gec2bf2fe0 on 2019-02-02; ESP module with ESP8266
Type "help()" for more information.
Looks like despite importing ulogging as logging, the picoweb still needs logging library. I am running a bit updated example
https://github.com/pfalcon/picoweb/blob ... _webapp.py so that you may not match the line numbers.
File "main.py", line 67, in <module>
in my file is
app.run(debug=1, host=station.ifconfig()[0])
The doc says:
"The default value for debug parameter is 0 however, in which case picoweb will use ulogging module (on which your application needs to depend, again)."
However, with app.run(debug=0) or app.run() micropython throws an ImportError: no module named 'logging' too (despite importin ulogging as logging). Is that ok?
Anyway, the web server finally works now, thank you for the great project and for support!