This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
arduino-docs [2015/05/05 19:14] russmathis |
arduino-docs [2015/07/19 01:19] (current) apedro [EEPROM] |
||
---|---|---|---|
Line 15: | Line 15: | ||
<code c++> | <code c++> | ||
#include <EEPROM.h> | #include <EEPROM.h> | ||
+ | |||
void setup() | void setup() | ||
{ | { | ||
Line 33: | Line 34: | ||
<code c++> | <code c++> | ||
#include <EEPROMAnything.h> | #include <EEPROMAnything.h> | ||
+ | |||
struct eepromInfoType | struct eepromInfoType | ||
{ | { | ||
Line 41: | Line 43: | ||
void setup() | void setup() | ||
{ | { | ||
- | myStruct.MyUnsigned8BitInt = 0; //assign some value | + | myStructOriginal.MyUnsigned8BitInt = 0; //assign some value |
- | strcpy( MyCharArray, "Less than 25 chars" ); //assign some value | + | strcpy( myStructOriginal.MyCharArray, "Less than 25 chars" ); //assign some value |
EEPROM_writeAnything( 0, myStructOriginal ); //remember to modify EEPROM_writeAnything by adding .commit(). | EEPROM_writeAnything( 0, myStructOriginal ); //remember to modify EEPROM_writeAnything by adding .commit(). | ||
//Lets read it back | //Lets read it back | ||
Line 48: | Line 50: | ||
} | } | ||
- | void loop() {//nothing here} | + | void loop() |
+ | { | ||
+ | //nothing here | ||
+ | } | ||
</code> | </code> | ||
Line 111: | Line 116: | ||
**Connect with static IP** | **Connect with static IP** | ||
+ | |||
+ | If you experience problems regarding DNS resolving check out https://github.com/esp8266/Arduino/issues/369 | ||
<code c> | <code c> | ||
#include <ESP8266WiFi.h> | #include <ESP8266WiFi.h> |