getString in Preference not working
Posted: Thu Aug 29, 2019 4:23 pm
I am trying to interact between ArduinoJson and Preferences.h and ESP32WebServer. For reasons too long to go into for this question, I would like to use the getString method in Preferences.h with the following signature:
size_t getString(const char* key, char* value, size_t maxLen);
I have tried many iterations but cannot figure out how to get the method to accept my parameters, including (size_t)197 and size_t s=197;
Rather than waste everyone's time showing all the things I tried, which didn't work, can someone tell me what I should do or if they have the same problem?
Thanks
size_t getString(const char* key, char* value, size_t maxLen);
I have tried many iterations but cannot figure out how to get the method to accept my parameters, including (size_t)197 and size_t s=197;
Rather than waste everyone's time showing all the things I tried, which didn't work, can someone tell me what I should do or if they have the same problem?
Thanks