Search found 9 matches

by mvincm
Tue Feb 11, 2020 9:39 am
Forum: ESP8266 boards
Topic: [OLD uasyncio] Problem with StreamWriter.awrite(). Very strange...
Replies: 4
Views: 511

Re: [OLD uasyncio] Problem with StreamWriter.awrite(). Very strange...

Hello, Sorry for the lack of information. Of course, it is important. First of all. I'm working with HTTP and in this particular case, I respond to GET request. "Server" raises an exception in the case where there is no file/path/url. Tipical 404 error (Not found). So if there is no such a path/file...
by mvincm
Mon Feb 10, 2020 7:21 pm
Forum: ESP8266 boards
Topic: [OLD uasyncio] Problem with StreamWriter.awrite(). Very strange...
Replies: 4
Views: 511

Re: [OLD uasyncio] Problem with StreamWriter.awrite(). Very strange...

Hello, Thanks for your interest! Re: tinyweb bug Let's forget for a while about the bug in tinyweb. Some theoretical discussion. I can totally agree that "finally" is not the best place to close a socket (what "StreamWriter.aclose()" exactly do). But isn't that true that if we use function StreamWri...
by mvincm
Fri Feb 07, 2020 7:17 pm
Forum: ESP8266 boards
Topic: [OLD uasyncio] Problem with StreamWriter.awrite(). Very strange...
Replies: 4
Views: 511

[OLD uasyncio] Problem with StreamWriter.awrite(). Very strange...

Hello, First of all, I know that there is coming soon new async lib for micropython but I have some implementation with the old one (thanks to Konstantin Belyalov). I think that there is some small bug (or I can't understand the normal way of working). Simple case. HTTP async server. When I use Stre...
by mvincm
Sun Apr 07, 2019 11:27 pm
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 22
Views: 9720

Re: Running webserver and other code simultaneously

Thank you very very much !!! I will follow your link!

Best regards,
MM
by mvincm
Wed Apr 03, 2019 8:57 pm
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 22
Views: 9720

Re: Running webserver and other code simultaneously

BTW... I have read a tutorial for uasyncio but I can't understand main difference "call_soon vs create_task". When we should use which function? Like in this example: https://github.com/micropython/micropython-lib/blob/master/uasyncio/example_http_server.py Why we use call_soon instead create_task (...
by mvincm
Tue Apr 02, 2019 12:01 pm
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 22
Views: 9720

Re: Running webserver and other code simultaneously

I can confirm. In the main line of uasyncio libs, there is no "False" so the problem is still there...
by mvincm
Tue Apr 02, 2019 8:51 am
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 22
Views: 9720

Re: Running webserver and other code simultaneously

@pythoncoder

I think there is some bug in uasyncio lib. More info here:

https://github.com/micropython/micropyt ... issues/335

Could you be so kind and take a look?

Best regards,
MvincM
by mvincm
Sun Sep 17, 2017 11:02 pm
Forum: ESP32 boards
Topic: Picoweb and temperature read in the loop (uasyncio)
Replies: 6
Views: 1340

Picoweb and temperature read in the loop (uasyncio)

Hello, I would like to use ESP32 (with micropython) and picoweb to made some thermostat. I will get and set temperature via picoweb "web app". To communicate I will use simple json messages... but I need to check temperature every e.g. 2 minutes, compare it to stored one and turn on or off my heater...