Search found 12 matches

by simonmcc
Fri Jul 19, 2019 7:21 am
Forum: ESP8266 boards
Topic: Corrupt file stops boot
Replies: 2
Views: 1783

Re: Corrupt file stops boot

I have a config module which allows the mode (transmitter/receiver) and wifi details etc to be configured, but these are not normally written unless someone clicks 'save' on the gui. I don't think there was any power outage, our house alarm normally notifies us of something like that :) It is curren...
by simonmcc
Fri Jul 19, 2019 6:49 am
Forum: ESP8266 boards
Topic: Corrupt file stops boot
Replies: 2
Views: 1783

Corrupt file stops boot

I have two D1 minis running a lightswitch for me, one is the sender and one the receiver. The receiver runs picoweb, and waits on /on or /off http requests to turn the lights on or off It stopped working recently, and when I went to investigate I saw that the program file had been corrupted, it look...
by simonmcc
Wed Jul 03, 2019 8:16 am
Forum: ESP8266 boards
Topic: Building firmware without SSL
Replies: 8
Views: 4892

Re: Building firmware without SSL

Thanks for that! It almost got me there, I then got this: CC build/frozen_mpy.c LINK build/firmware.elf build/py/objmodule.o:(.rodata.mp_builtin_module_weak_links_table+0x5c): undefined reference to `mp_module_ussl' Makefile:191: recipe for target 'build/firmware.elf' failed make: *** [build/firmwar...
by simonmcc
Mon Jul 01, 2019 8:02 am
Forum: ESP8266 boards
Topic: Building firmware without SSL
Replies: 8
Views: 4892

Building firmware without SSL

Hi all, I see a couple of older threads about disabling SSL, but no one seems to have exactly the same issue. I dont need SSL, and I'm trying to build a smaller firmware as my project code is quite large; in the esp8266 port I modified the make file lines: MICROPY_PY_USSL = 0 MICROPY_SSL_AXTLS = 0 b...
by simonmcc
Tue Apr 02, 2019 10:39 am
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 22
Views: 26878

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: 22
Views: 26878

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: 22
Views: 26878

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: 22
Views: 26878

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: 22
Views: 26878

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: 22
Views: 26878

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...