Compile-time string table that packs strings into a single blob with offset lookup.
More...
template<FixedString... Strs>
struct esphome::ProgmemStringTable< Strs >
Compile-time string table that packs strings into a single blob with offset lookup.
Use PROGMEM_STRING_TABLE macro to instantiate with proper flash placement on ESP8266.
Example: PROGMEM_STRING_TABLE(MyStrings, "foo", "bar", "baz"); ProgmemStr str = MyStrings::get_progmem_str(idx, MyStrings::LAST_INDEX); // For ArduinoJson const LogString *log_str = MyStrings::get_log_str(idx, MyStrings::LAST_INDEX); // For logging
Definition at line 62 of file progmem.h.