-->
Page 1 of 2

Store user input data on the module after the reset?

PostPosted: Sun Aug 02, 2015 1:00 pm
by AlexPilk
Say I want the user to go to the ip address of the module, input a value into an input field, that would be later sent out via TX when the button connected to a GPIO pin is pressed. Most importantly, how do I save the value the user enters, so that the module would remember it after turning the module off and on again? It should be possible to create a txt file or something for holding the data, right? And if possible - how do you do it using Arduino IDE?

Re: Store user input data on the module after the reset?

PostPosted: Sun Aug 02, 2015 1:11 pm
by kolban
Howdy Alex,
See the following:

http://arduino.esp8266.com/versions/1.6 ... rence.html

Specifically, see the section on the EEPROM class. This appears to allow you to write data to flash from within a Sketch and also read it back.

Re: Store user input data on the module after the reset?

PostPosted: Mon Aug 03, 2015 3:05 am
by AlexPilk
Thank you!

Re: Store user input data on the module after the reset?

PostPosted: Mon Aug 03, 2015 4:28 am
by AcmeUK
You could save the info to the RTC memory, see here http://www.esp8266.com/viewtopic.php?f=33&t=4329