Search found 11 matches

by eltomek
Sat Mar 02, 2019 8:38 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
Replies: 114
Views: 49251

Re: uasyncio - asyncio-like cooperative multitasking framework for uPy

For posterity, as I've spend several days investigating this case, maybe this is going to save somebody else's time. While running my picoweb server and some mqtt reporting to Thingspeak executed within uasyncio loop on my Wemos D1 mini (ESP8266) after some time I was getting a vague ValueError: gen...
by eltomek
Sat Mar 02, 2019 8:08 pm
Forum: ESP8266 boards
Topic: GPIO0 (D3) pin on Wemos D1 mini toggles upon Micropython start
Replies: 0
Views: 222

GPIO0 (D3) pin on Wemos D1 mini toggles upon Micropython start

What is special about GPIO0 (D3) that this pin toogles ON->OFF upon bootup of Micropython? I checked the rest of the pins and they look to behave correctly i.e no unexpected toggling.
by eltomek
Sun Feb 24, 2019 11:57 am
Forum: ESP8266 boards
Topic: How to disable autoconnect ("no ap found, reconnect after 1s")?
Replies: 1
Views: 344

How to disable autoconnect ("no ap found, reconnect after 1s")?

Even though my main.py and boot.py scripts do not contain WIFI connection calls (nor credentials), micropython seems to remember the credentials and keeps reconnecting every second, yielding a notification "no ap found, reconnect after 1s". Also, despite providing new (incorrect credentials just for...
by eltomek
Tue Feb 12, 2019 9:57 pm
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 2167

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

pfalcon wrote:
Sun Feb 03, 2019 6:52 am
Anyway, released picoweb 1.5.2 now, please give it a try, everything is intended to work out of the box of course
Worked as a charm, many thanks!
by eltomek
Tue Feb 12, 2019 9:38 pm
Forum: Programs, Libraries and Tools
Topic: micropython-lib - "distributed" uPython standard library
Replies: 30
Views: 21205

Problem with uaiohttpclient run witl pycopy

Trying to run micropython-lib's http.client renders the following error regardless of whether using @pfalcon's version of micropython-lib or the "official" one (https://github.com/micropython/micropython-lib/) tomek@ubuntu:~/src/micropython/ports/unix$ ./micropython ~/src/micropython-lib/http.client...
by eltomek
Sat Feb 02, 2019 11:05 pm
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 2167

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

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...
by eltomek
Sat Feb 02, 2019 9:32 pm
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 2167

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

Seems like I'm not too lucky with that micropython stuff. I compiled a pfalcon's pycopy (https://github.com/pfalcon/pycopy), pulled in (upip) the uasyncio, picoweb, micropython-ulogging (all pfalcon's AFAIK) and I still get the same issue report: '192.168.0.87', '255.255.255.0', '192.168.0.1', '62.1...
by eltomek
Sat Feb 02, 2019 10:53 am
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 2167

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

I compile the firmware from the source code as I want to include picoweb in the bundle. Copying micropython-lib/uasyncio and uasyncio-core to micropython-1.10/ports/esp8266/modules doesn't do the job, I guess some more sophisticated installation is needed for the micropython's makefile to pull the m...
by eltomek
Sat Feb 02, 2019 10:42 am
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 2167

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

Ok, I get it now, I was not aware that the PyPi.org hosted packages were @pfalcon ones.

This might me a stupid quesion but how do I get the official micropython-lib's uasyncio deployed to my micropython build? I don't want upip to download it from pypi.org but rather take the local one.
by eltomek
Sat Feb 02, 2019 9:30 am
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 2167

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

Thanks @pythoncoder. Unfortunately, I compiled in the micropython-uasyncio 2.2.1 (micropython -m upip install -p modules micropython-uasyncio) but still get the same error: * Running on http://192.168.0.87:8081/ INFO:picoweb:211.000 <HTTPRequest object at 3fff29b0> <StreamWriter <socket state=3 time...