My ignorance around Strings is still causing me issues. I was hoping to just drop in char strValue[20] in place of String strValue as used in the library examples. But I get the following compile error. Does anyone have any suggestions or explanation on the error?
lib/JsonParserGeneratorRK/src/JsonParserGeneratorRK.h:417:24: error: cannot bind non-const lvalue reference of type 'String&' to an rvalue of type 'String'
417 | return getTokenValue(value, result);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
However when I use memcpy, I am now getting a bunch of garbage at the end of the received string, and the last character of config_data.email is missing. I assume I am not copying my received value to config_data.email correctly.