19 #include <uuid/common.h>
28 std::string str(::strlen_P(
reinterpret_cast<PGM_P
>(flash_str)),
'\0');
30 ::strncpy_P(&str[0],
reinterpret_cast<PGM_P
>(flash_str), str.capacity() + 1);
std::string read_flash_string(const __FlashStringHelper *flash_str)
Read a string from flash and convert it to a std::string.