Skip to content

ESP8266 Liberary for reading and writing strings using Arduino IDE

Notifications You must be signed in to change notification settings

zeeshan-iqbal-cs/StorageIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StorageIO (ESP8266)

It is very important to save WiFi setting (SSID/Password) and server address in permanent so it can autometically reconnect with WiFi on next start.

StorageIO class provide an easy interface for EEPROM.

Example

#include <StorageIO.h>

void setup(){

    Serial.begin(9600);
    while(! Serial);

    StorageIO rom;
    rom.writeNextString("Hello ");
    rom.writeNextString("World");
    
    rom.reposition();
    Serial.print(rom.readNextString());
    Serial.println(rom.readNextString());
}

void loop(){}

Note: Try to minimize the number of writes on EEPROM because it reduces its life

About

ESP8266 Liberary for reading and writing strings using Arduino IDE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages