These are chat archives for esp8266/Arduino

1st
Aug 2015
Neil Kolban
@nkolban
Aug 01 2015 21:05
I'd like to suggest that for ESP8266WebServer that the callback functions accept a parameter which is a reference to the ESP8266WebServer object itself. This would allow us to write callback functions that are independent of the environment in which the programmer wrote their code. It would allow us to write libraries of reusable callback functions. I'd be happy to update the project myself to achieve this goal if we agree this is a good contribution.
Ivan Grokhotkov
@igrr
Aug 01 2015 21:10
That would be a welcome addition. Best would be to let it accept old type of callback functions as well, just for the sake of compatibility.
BTW, I'm doing some changes related to web server, I'll push my changes tomorrow or perhaps on Monday
that will include serving files from filesystem
remcohn
@remcohn
Aug 01 2015 21:27
are there any examples to work with the filesystem at all? im currently playing with the webupdater, but i dont fully understand the free size it reports. my module is a ESP-12 with 4meg flash. the size of the sketch thats currently in there is roughly 300k, and the free size it reports is ~700k, but shouldnt that be 3M-300k = 2700k ?
Ivan Grokhotkov
@igrr
Aug 01 2015 21:28
sketch space is limited to 1M, and the rest 3M are for FS
no examples yet, but you can look at tests/FSWrapper to get an idea
Michael Miller
@Makuna
Aug 01 2015 21:29
Why not use a generic? Using lambda expression instead of another function? While this won't work for AVR, gcc supports it and I have tested it.
Ivan Grokhotkov
@igrr
Aug 01 2015 21:30
sure, this should work through generics.
I meant that it should take two types of lambda functions: "old style" and new, with additional arguments
also it should work with AVR core, it got C++11 enabled recently
not that someone is going to use esp8266webserver with AVR core, that is.
Neil Kolban
@nkolban
Aug 01 2015 21:38
@igrr Ive released the first edition of an ESP8266 book ... see here .. http://neilkolban.com/tech/esp8266/
What I am doing now is adding in new materials for Arduini IDE. Just checking with you that it is ok to provide "book coverage" of the projuct?
Ivan Grokhotkov
@igrr
Aug 01 2015 21:39
cool, will read that on my flight tomorrow :)
sure, that's fine
probonopd
@probonopd
Aug 01 2015 21:40
@nkolban cool. can you export an ePub?
Neil Kolban
@nkolban
Aug 01 2015 21:41
@probonopd It is written in Libre Office ... if it can output an ePub ... no problems ...
that'd be awesome
Ivan Grokhotkov
@igrr
Aug 01 2015 21:42
do you want me to email you with suggested changes? I see you are missing some info on memory map, I can certainly fill you in on that subject
Neil Kolban
@nkolban
Aug 01 2015 21:43
That would be wonderful. Ive held off reaching out to you and the other heros directly because I wanted to demonstrate I wasn't a time waster. Add my email to your list ... kolban1@kolban.com
I'm hoping we can all collaborate in the weeks and months ahead.
probonopd
@probonopd
Aug 01 2015 21:58
that's great @nkolban