Larger website code (html,java,css) served with server.send?
Posted:
Fri Jan 27, 2017 3:30 pm
by JoachimPetersen
Hello, I am using ESP8266 Arduino IDE.
I have a problem with sending a larger website as the interface (around 100000 characters), how would I be able to send this via server.send? is there any code example with larger website code being passed to server.send?
Thank you in advance.
Re: Larger website code (html,java,css) served with server.s
Posted:
Sun Jan 29, 2017 9:32 am
by JoachimPetersen
Is it possible to store it in strings or should you write it to a .bin file somewhere on the esp(flash storage) and then serve the data from there, if so, how would this be done, through Arduino IDE?
I can't seem to find any examples serving larges websites, using Arduino IDE.
Re: Larger website code (html,java,css) served with server.s
Posted:
Thu Feb 09, 2017 12:21 pm
by cgib
I'd also like to know how to do this. I haven't been successful in finding any examples or tutorials anywhere. Does anyone know how this could be done?
Re: Larger website code (html,java,css) served with server.s
Posted:
Fri Feb 10, 2017 4:50 am
by GengusKahn
Hi there, the solution I have used is to use the WiFiClient to send the larger portions of data, if you look to the bottom of the sketch in the link you will find a modified "Drawgraph" from the examples menu.
This is using an Arduino as an ADC Slave for the MQ sensor data provided on the page......
https://github.com/EnvironmentMonitor/Air_Quality_Sensor/blob/master/Air_Quality_Server.inoThis can be viewed here....
http://sensor.downtrodden.co.uk/