Search found 22 matches

by zedtech
Wed Mar 14, 2018 12:32 am
Forum: ESP8266 boards
Topic: Building MicroPython firmware
Replies: 6
Views: 5072

Re: Building MicroPython firmware

Kindly enlighten me, what changes did you make to this module to make it usable with MicroPython before freezing it?
by zedtech
Fri Jan 19, 2018 2:41 am
Forum: ESP8266 boards
Topic: how can non-blocking socket instances be implemented
Replies: 14
Views: 65135

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 ...
by zedtech
Fri Jan 05, 2018 6:30 pm
Forum: General Discussion and Questions
Topic: How to use non blocking functions, asynchronous tasks
Replies: 21
Views: 21350

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?
by zedtech
Fri Jan 05, 2018 3:49 am
Forum: ESP8266 boards
Topic: how can non-blocking socket instances be implemented
Replies: 14
Views: 65135

Re: how can non-blocking socket instances be implemented

Thanks but none of the above examples use sockets.
by zedtech
Fri Jan 05, 2018 3:47 am
Forum: ESP8266 boards
Topic: how can non-blocking socket instances be implemented
Replies: 14
Views: 65135

Re: how can non-blocking socket instances be implemented

Thanks but none of the class example uses sockets
by zedtech
Wed Jan 03, 2018 7:02 am
Forum: ESP8266 boards
Topic: how can non-blocking socket instances be implemented
Replies: 14
Views: 65135

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....
by zedtech
Wed Jan 03, 2018 3:47 am
Forum: General Discussion and Questions
Topic: How to use non blocking functions, asynchronous tasks
Replies: 21
Views: 21350

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...
by zedtech
Tue Jan 02, 2018 6:59 pm
Forum: General Discussion and Questions
Topic: How to use non blocking functions, asynchronous tasks
Replies: 21
Views: 21350

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.
by zedtech
Tue Jan 02, 2018 3:16 am
Forum: ESP8266 boards
Topic: how can I implement time scheduling in micropython
Replies: 13
Views: 11492

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