1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

send_P, sendContent_P, and FPSTR

This allows for the content of server response to be stored in flash
memory.
This commit is contained in:
Makuna
2015-07-24 12:41:26 -07:00
parent cc8fb10e21
commit 8fa156d356
4 changed files with 99 additions and 26 deletions

View File

@ -35,8 +35,8 @@ class StringSumHelper;
// an abstract class used as a means to proide a unique pointer type
// but really has no body
class __FlashStringHelper;
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
#define F(string_literal) (FPSTR(PSTR(string_literal)))
// The string class
class String {