Search found 8 matches

by simonmcc
Tue Apr 02, 2019 10:39 am
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 20
Views: 1798

Re: Running webserver and other code simultaneously

I just removed False from that function call on line 60 in uasyncio/__init__.py, and it works for me now - this is the diff output:

Code: Select all

60c60
<         self.poller.unregister(sock, False)
---
>         self.poller.unregister(sock)
by simonmcc
Mon Jun 04, 2018 10:22 pm
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 20
Views: 1798

Re: Running webserver and other code simultaneously

Peter, as you've probably detected I'm at the 'silly' stage alright. This is all new to me, and I'm loving it, although it's (clearly) taking a bit of time to get used to! I appreciate your patience I definitely will try building my own firmware soon (if only there were more hours in the day) but wh...
by simonmcc
Fri Jun 01, 2018 5:00 pm
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 20
Views: 1798

Re: Running webserver and other code simultaneously

so I got uasyncio loaded and running, and I got one of my existing modules converted to it, but I keep running into issues with memory. My program requires quite a few modules - TCP connection to server, ssd1306 for display, 1-wire, etc, etc. After reading another thread, I tried to precompile some ...
by simonmcc
Sat May 26, 2018 7:07 pm
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 20
Views: 1798

Re: Running webserver and other code simultaneously

Here is a simple web server based on the uasyncio example, that I know works on the ESP8266 and the D1 Mini. I have yet to implement another coro but perhaps Peter's tutorial will help you with that. # # Simple HTTP server based on the uasyncio example script # by J.G. Wezensky (joewez@gmail.com) #...
by simonmcc
Sat May 26, 2018 6:49 am
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 20
Views: 1798

Re: Running webserver and other code simultaneously

Peter, my apologies for asking an FAQ, and thanks for your pointer, I'll take a look. I had looked at the asyncio stuff briefly but it didn't work for me on my D1 mini - maybe the same issue with the outdated firmware I started off with. I'll look a bit further into it. It seems the ws.py isnt the s...
by simonmcc
Fri May 25, 2018 4:12 pm
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 20
Views: 1798

Running webserver and other code simultaneously

Hi, I’m using the ws.py (http://jacobstoner.com/ws.py) minimalist webserver and it works well in a forever loop with ws.serve(1000). I’m using the web service for configuration values. However, for my application I also want to have a tcp client running too, and I want it to be reactive, so I call s...
by simonmcc
Fri May 25, 2018 3:38 pm
Forum: Drivers for External Components
Topic: ssd1306 display issue on wemos d1 mini
Replies: 2
Views: 439

Re: ssd1306 display issue on wemos d1 mini

Peter,

Thanks you are completely correct, a firmware update as you suggested fixed the issue!
by simonmcc
Fri May 11, 2018 5:28 pm
Forum: Drivers for External Components
Topic: ssd1306 display issue on wemos d1 mini
Replies: 2
Views: 439

ssd1306 display issue on wemos d1 mini

Hi, I'm sorry for my lack of python etc, I'm completely new to all of this, but I'm using a Wemos D1 Mini running v1.9-6, and I bought a ssd1306 module. I downloaded the ssd1306.py from https://github.com/micropython/micropython/blob/master/drivers/display/ssd1306.py and tried this program: program:...