Saving string data from terminal widget to sketch

Hi everyone,

I would like to use the terminal widget to send and save data to my sketch to update an email address used for notifications. I’ve learned how to send data to the terminal and receive feedback but how do I save that data in a string variable. I checked the forum for similar topics but I haven’t found a solution. Any help will be appreciated.
I am using a NODEMCU ESP8266.

As in the Documents example, and as with all other input widgets, you use param.asStr() for string data

E.g.

String MyTerminalData;

BLYNK_WRITE(vPin) {  // Terminal Widget
MyTerminalData = param.asStr());
}

See more here…

http://docs.blynk.cc/#blynk-firmware-virtual-pins-control

Thank you very much! I will try this

If you want the email string to be persistent across reboots, best to save it in SPIFFS or EEPROM.

Thanks! I will try this