- Fri Aug 21, 2015 5:19 pm
#26737
If you were using ESP8266WebServer example, this functionnality has been added 3-4 weeks ago, with the new send_P() and sendContent_P() functions.
viewtopic.php?f=29&t=4060&p=24478&hilit=PROGMEM+send_P#p24478and the commit is :
https://github.com/esp8266/Arduino/comm ... 03280c5c76If you are using plain WifiClient like you seems to, this functionnality is not present yet.
You will then have to create your own inspired by the commit above, using memccpy_P in loop for sending chunks of the PROGMEM until it reach the end.
EDIT : Oh ! I didn't see that earlier : you are sending "client.println(PAGE_NetworkConfiguration[i]);", why the "[i]" is there ? it not array of web page, so you are providing wrong string pointer by proving a character value as a pointer to string...
But that doesn't make my previous comment irrelevant, I will work to have new write_P() added in WifiClient ...
EDIT2 : I've done the work for new WifiClient::write_P(), it is now commit, waiting for approved PR ...