These are chat archives for esp8266/Arduino

24th
Aug 2016
Me No Dev
@me-no-dev
Aug 24 2016 16:36
so... I got Async TCP and WebServer to run with SSL
but... we do not have enough memory for more than one client at a time
any axTLS savy people here that can land a hand?
aneek231
@aneek231
Aug 24 2016 17:13
Hello, I am trying to upload a (big) file to a remote server through ESP and I am getting this error from HTTP client.
"[HTTP-Client][sendRequest] short write, asked for 1460 but got 0 failed"
and also
"Send Payload failed" error with code -3.
Can some one help me?
aneek231
@aneek231
Aug 24 2016 17:36
It is failing in this part of code
int bytesWrite = _tcp->write((const uint8_t *) buff, bytesRead);
bytesWritten += bytesWrite;
if(bytesWrite != bytesRead) {
}
aneek231
@aneek231
Aug 24 2016 17:45
@igrr Can you please help me ?
probonopd
@probonopd
Aug 24 2016 18:05
slightly OT, does anyone know why an infrared consumer IR receiver module (TSOP clone) might detect errorneous pulses, could that have to do with the power supply on a NodeMCU 1.0?
Mehrdad K
@mkeyno
Aug 24 2016 18:06
@aneek231 why don't use websoket or Async webserver , those are so stable regard to raw tcp
probonopd
@probonopd
Aug 24 2016 18:36
ever seen this?
libraries/ESPAsyncTCP/lwipr_compat.c.o: In function `ax_port_write':
/home/me/Arduino/libraries/ESPAsyncTCP/src/lwipr_compat.c:269: multiple definition of `ax_port_write'
Me No Dev
@me-no-dev
Aug 24 2016 18:37
pull latest esp8266
probonopd
@probonopd
Aug 24 2016 18:37
thanks @me-no-dev
We totally need a system where dependencies can be managed by git commit hashes
to get an exact combination of ide, esp8266, and each library
probonopd
@probonopd
Aug 24 2016 18:54
@me-no-dev duh, now @sticilface ESPManager is totally broken
usr/bin/hardware/esp8266/esp8266/cores/esp8266/Arduino.h:76:19: error: expected identifier before numeric constant
 #define DISABLED  0x00
                   ^
/home/me/Arduino/libraries/ESPmanager/ESPMAN.h:62:17: note: in expansion of macro 'DISABLED'
                 DISABLED = -1,
(...) long text
Me No Dev
@me-no-dev
Aug 24 2016 18:56
unrelated :)
probonopd
@probonopd
Aug 24 2016 18:58
luckily i painstakingly documented the exact 1 combination that worked for me, https://github.com/probonopd/ESP8266iTachEmulator/blob/master/README.md#building
xbary
@xbary
Aug 24 2016 22:05
hello ... Such a curiosity, I noticed that using SWITCH..CASE in the code that causes wanes we RAM. And substituting switch ... case for the IF memory returns. Or you've noticed?
Me No Dev
@me-no-dev
Aug 24 2016 22:15
@xbary same on AVR
xbary
@xbary
Aug 24 2016 22:18
These are the most likely options for optimization. I noticed that the compiler creates an array that is in RAM, of course, he decides this. Also, any switch case recommend to improve on if.
xbary
@xbary
Aug 24 2016 22:43
just corrected a few procedures switch case for ifa and got ~ 2 kb RAM, it was a switch case 8 case and one case of 70 procedures