#include <Preferences.h>
Preferences preferences;
void setup() {
Serial.begin(115200);
char keyToAdd[15];
String valueToAdd;
keyToAdd = Serial.readString();
valueToAdd = Serial.readString();
preferences.begin("licence",false);
preferences.putString(keyToAdd, valueToAdd);
preferences.end();
}
void loop() {
}
I want a key maybe "room" and want to write on my Serial monitor room test but ...
What I got is this error:
incompatible types in assignment of 'String' to 'char [15]'