Closed JesseRiemens closed 2 years ago
@JesseRiemens Sorry for the late reply.
Here are PageElement constructors:
PageElement(const char* mold, const TokenVT& sources) : _sources(sources) { setMold(mold); }
PageElement(const __FlashStringHelper* mold, const TokenVT& sources) : _sources(sources) { setMold(mold); }
But your code is:
PageElement root_elm(root_element, {
{"Plants", listPlants}
});
In the above declaration, the interpretation of the type of root_element
is const char*
. In order to pass it to __FlashStringHelper*
, you need to use FPSTR
macro.
PageElement root_elm(FPSTR(root_element), {
{"Plants", listPlants}
});
Sorry to file another issue but I found another thing that doesn't really work for me: This will work:
But this results in an exception in runtime:
Exception: