These are chat archives for esp8266/Arduino

12th
Jun 2016
Enzo Sagretti
@enzosagretti
Jun 12 2016 02:18
Hello everyone, I am a new enthusiastic of ESP8266. I found and errror in Parsing.cpp library. I report as an issue on github (#2131). Becouse of this, i can´t read HTTP_POST body. The error is because case sensitive header compare (I test to change this and work fine in my enviroment) Who can i help me to make this change at master? (sorry for my english, i am from Argentina)
Clemens Kirchgatterer
@everslick
Jun 12 2016 06:29
@enzosagretti: your fix is not a fix though, because you just replace ONE buggy code with another buggy code. nevertheless it's seems to be a bug and AFAICS igrr has already confirmed and scheduled a release version.
Ivan Grokhotkov
@igrr
Jun 12 2016 06:41
Yeah, just need to fix every compare/beginsWith with case-insensitive version (there are a few more places)
Ivan Grokhotkov
@igrr
Jun 12 2016 07:02
List of bugs is getting shorter...
Ivan Grokhotkov
@igrr
Jun 12 2016 08:48
@comino sorry, i forgot that md5 functions come from axTLS. Usually when component is not available in host testing environment as is, we can write a replacement. But I'm okay with merging your pull request as is if writing a test case gets too involved...
Having axTLS and LwIP compiled for host-side tests is a goal as well.
Clemens Kirchgatterer
@everslick
Jun 12 2016 12:26
@igrr: speaking of bugs. i have seen that if WIFI.hostbyname() fails due to no internet connection, it will keep failing even internet has come back. ever seen this?
Ivan Grokhotkov
@igrr
Jun 12 2016 12:28
no internet connection as in WiFi is not connected, or as in WiFi AP doesn't have connection itself?
good thing is that dns client code is part of LwIP, so if that is an LwIP issue, it should be easy to fix.
Clemens Kirchgatterer
@everslick
Jun 12 2016 12:36
my adsl router lost the connection to the internet, but the ESP was still connected to wlan
NTP could not resolve poll.ntp.org anymore and kept complaining, even adsl started working again. ( icould resolve pool.ntp.org from my desktop)
Germán Martín
@gmag11
Jun 12 2016 12:54
I had the same behaviour when developing a NTP project. It took quite a long to get DNS working again after internet disconnection. I tried it when rebooting WiFi router.
Let it working some minutes to check if it recovers alone.
Clemens Kirchgatterer
@everslick
Jun 12 2016 13:10
i think i let it retry for over an hour. twice. it never recoveredd by itself
Ivan Grokhotkov
@igrr
Jun 12 2016 15:49
@everslick that was with latest version or some older release?
oh haha this is funny
Clemens Kirchgatterer
@everslick
Jun 12 2016 15:53
i'm always tight too master (I pull dayly ) :)
Ivan Grokhotkov
@igrr
Jun 12 2016 15:57
there were some changes to dns client in the previous SDK update
I'm not totally sure what those do
Clemens Kirchgatterer
@everslick
Jun 12 2016 16:04
damn, looks like I WAS behind with the SDK
i just double checkt, and now I get even linker errors
Ivan Grokhotkov
@igrr
Jun 12 2016 16:06
time to update build scripts i guess? like, add -lstdc++ to linker flags...
Clemens Kirchgatterer
@everslick
Jun 12 2016 17:44
yeah, std::foo
i'm back at: section .text' will not fit in regioniram1_0_seg' :-(
Clemens Kirchgatterer
@everslick
Jun 12 2016 17:49
-nostdlib has to go as well ?
Clemens Kirchgatterer
@everslick
Jun 12 2016 17:58
na, its still in plattform.txt
cannot find crt1-sim.o and cannot find _vectors.o
Clemens Kirchgatterer
@everslick
Jun 12 2016 18:39
this is really wired. some have reported the same or similar errors when linking, but no definitive solution, only guesses. those two files do not exist in the SDK nor the tools/lib.
Clemens Kirchgatterer
@everslick
Jun 12 2016 19:31
since commit de166c9dd73bd1da0baa35b2a62695035196018a (WiFi event handling refactoring (#2119)) I cannot link anymore even I add -lstdc++ and or -lc to the libraries
adding or removing -nostdlib to the linker just changes the type of error, but doesn't make them go away