Search found 22 matches
- Wed Mar 14, 2018 12:32 am
- Forum: ESP8266 boards
- Topic: Building MicroPython firmware
- Replies: 6
- Views: 5149
Re: Building MicroPython firmware
Kindly enlighten me, what changes did you make to this module to make it usable with MicroPython before freezing it?
- Fri Jan 19, 2018 2:41 am
- Forum: ESP8266 boards
- Topic: how can non-blocking socket instances be implemented
- Replies: 14
- Views: 71990
Re: how can non-blocking socket instances be implemented
To whom this may concern! This is just an update to the question i asked, particularly how to accept a socket that is blocking, to which recently I found a solution using select and hope this will be beneficial to someone else. Below is the solution import usocket as socket import uselect as select ...
- Fri Jan 05, 2018 6:30 pm
- Forum: General Discussion and Questions
- Topic: How to use non blocking functions, asynchronous tasks
- Replies: 21
- Views: 21714
Re: How to use non blocking functions, asynchronous tasks
@pyhtoncoder,
I'm trying to follow your mytt_as but somehow lost. Do you have an implemented example for it?
I'm trying to follow your mytt_as but somehow lost. Do you have an implemented example for it?
- Fri Jan 05, 2018 3:49 am
- Forum: ESP8266 boards
- Topic: how can non-blocking socket instances be implemented
- Replies: 14
- Views: 71990
Re: how can non-blocking socket instances be implemented
Thanks but none of the above examples use sockets.
- Fri Jan 05, 2018 3:47 am
- Forum: ESP8266 boards
- Topic: how can non-blocking socket instances be implemented
- Replies: 14
- Views: 71990
Re: how can non-blocking socket instances be implemented
Thanks but none of the class example uses sockets
- Wed Jan 03, 2018 10:56 pm
- Forum: General Discussion and Questions
- Topic: How to use non blocking functions, asynchronous tasks
- Replies: 21
- Views: 21714
- Wed Jan 03, 2018 7:02 am
- Forum: ESP8266 boards
- Topic: how can non-blocking socket instances be implemented
- Replies: 14
- Views: 71990
how can non-blocking socket instances be implemented
Sorry if this question has been asked before. My goal is to run a webserver on ESP8266 and at the same time do some else. For multitasking im using uasyncio module. Here is the snippet i have come up with so far: import network import usocket as socket station = network.WLAN(network.STA_IF) station....
- Wed Jan 03, 2018 3:47 am
- Forum: General Discussion and Questions
- Topic: How to use non blocking functions, asynchronous tasks
- Replies: 21
- Views: 21714
Re: How to use non blocking functions, asynchronous tasks
Your project i was referenced too is partially helpful in that i couldn't find where you are catching the socket.accept(). How do i catch the socket.accept()? Also, according to some reading i did, when the socket instance is set to non blocking and upon checking whether there's a connection and whe...
- Tue Jan 02, 2018 6:59 pm
- Forum: General Discussion and Questions
- Topic: How to use non blocking functions, asynchronous tasks
- Replies: 21
- Views: 21714
Re: How to use non blocking functions, asynchronous tasks
@pythoncoder,
Thanks for the comments. Yes, the current time isn't serving any particular purpose, but can easily provide one for it. My many focus is to have both functions run at the same. In socket blocking mode, only the check_conn() function is working. But i want both to run.
Thanks for the comments. Yes, the current time isn't serving any particular purpose, but can easily provide one for it. My many focus is to have both functions run at the same. In socket blocking mode, only the check_conn() function is working. But i want both to run.
- Tue Jan 02, 2018 3:16 am
- Forum: ESP8266 boards
- Topic: how can I implement time scheduling in micropython
- Replies: 13
- Views: 11965
Re: how can I implement time scheduling in micropython
@JumpZero, no i haven't but will take a look and learn something new. Thanks for your feedback