Actually I want to use sendContent_P(const char*) to send data or something like that, which dosen't involve too much RAM, rather done using flash.
Can anyone help me?
Arduino Uno
Raspberry pi 2
ESP8266-01
ESP8266-12E
Explore... Chat... Share...
Moderator: igrr
File file = SPIFFS.open(path, "r");
String fileStr = file.readString();
webserver->sendContent_P(fileStr.c_str());
file.close();
String contentType; //setup the response content type using logic based on the file being sent prior to calling streamFile
File file = SPIFFS.open(path, "r");
webserver->streamFile(file, contentType);
file.close();
martinayotte wrote:send_P() and sendContent_P() are strictly to be use with PROGMEM, not from streams coming from SPIFFS.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]