Search found 92 matches
- Sun Oct 16, 2016 12:12 pm
- Forum: ESP8266 boards
- Topic: Calling experienced network programmers
- Replies: 31
- Views: 24094
Re: Calling experienced network programmers
I realize this is extremely elementary but the stability of my esp8266 wifi connection to run an MQTT client seems very much related to how frequently and how long I yield back to the RTOS (with time.sleep(..) or whatever). It would seem like an interesting experiment to vary both and see how that a...
- Tue Oct 11, 2016 11:11 am
- Forum: ESP8266 boards
- Topic: Question about allocating memory in interrupts
- Replies: 10
- Views: 8550
Re: Question about allocating memory in interrupts
Yes. If a soft interrupt like timer ID -1 doesn't have the same memory contraints as a hardware interrupt, would be great to get that documented so that there isn't an assumption that all interrupts have the same memory restrictions (unless I missed it).Are you using timer ID -1?
- Mon Oct 10, 2016 9:21 pm
- Forum: ESP8266 boards
- Topic: Question about allocating memory in interrupts
- Replies: 10
- Views: 8550
Re: Question about allocating memory in interrupts
@pythoncoder - thanks for your comments. I had modified an earlier version of the mqtt library before it was released and since it has been working in a number of applications I never upgraded to the released version. I haven't had an issue with blocking although the timing in my applications is gen...
- Mon Oct 10, 2016 3:10 pm
- Forum: ESP8266 boards
- Topic: Question about allocating memory in interrupts
- Replies: 10
- Views: 8550
Re: Question about allocating memory in interrupts
check_msg is doing the following when the interrupt is triggered. def check_msg(self): self.sock.setblocking(False) res = self.sock.read(1) if res is None: return None #if res[0] >> 4 !=3: #more general but not handling QoS > 0 right now if res[0] in (48,49): self.sock.setblocking(True) sz = self.so...
- Sun Oct 09, 2016 8:16 pm
- Forum: ESP8266 boards
- Topic: Question about allocating memory in interrupts
- Replies: 10
- Views: 8550
Question about allocating memory in interrupts
Hardware is an esp8266 with latest firmware. The following works but I am confused because I thought you couldn't allocate memory in an interrupt (including a timer callback, which this is) so just trying to understand why this doesn't cause a memory error). The line is an mqtt check on a topic that...
- Thu Aug 25, 2016 1:35 pm
- Forum: ESP8266 boards
- Topic: Cross Compiler only
- Replies: 14
- Views: 14867
Re: Cross Compiler only
The new WSL (Windows Subsystem for Linux) on Windows 10 compiles the esp-open-sdk without a problem if that is helpful information.
- Thu Aug 11, 2016 9:11 pm
- Forum: ESP8266 boards
- Topic: Problem compiling esp-open-sdk
- Replies: 5
- Views: 5689
Re: Problem compiling esp-open-sdk
It was the available disk space. Not sure what the minimum is but 1.7 GB was not enough and when I freed up space, it compiled fine.
- Thu Aug 11, 2016 7:40 pm
- Forum: ESP8266 boards
- Topic: Problem compiling esp-open-sdk
- Replies: 5
- Views: 5689
Re: Problem compiling esp-open-sdk
It's 16 MBs - the last entry before things went awry was [ALL ] x86_64-build_pc-linux-gnu-gcc -g -O2 -static-libstdc++ -static-libgcc -o gdb gdb.o xtensa-tdep.o xtensa-config.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio....
- Thu Aug 11, 2016 5:31 pm
- Forum: ESP8266 boards
- Topic: Problem compiling esp-open-sdk
- Replies: 5
- Views: 5689
Problem compiling esp-open-sdk
Have not had a problem compiling the esp sdk but hadn't tried for about a week. I am doing this using a virtual ubuntu 16.04 box. Did a fresh pull from git. What I am getting is: ... [INFO ] ================================================================= [INFO ] Installing final gcc compiler [INFO...
- Thu Jun 30, 2016 8:44 pm
- Forum: ESP8266 boards
- Topic: ESP8266 make fails during MPY section
- Replies: 3
- Views: 4468
Re: ESP8266 make fails during MPY section
Now that frozen bytecode is in use for the esp8266 port, you need to build mpy-cross. See the updated instructions at https://github.com/micropython/micropyt ... er/esp8266