Skip to content

esp8266 eeprom read crash  #903

@ADJ7WTB

Description

@ADJ7WTB

Does any one know why exception 28 crash on esp8266. I write data to eeprom. But when I want to read it. The esp8266 crash.
My code:

#include <EEPROM.h>

Struct mydata{
  char ssid;
  char pass;};

void setup(){ 
Serial.begin(9600);
EEPROM.begin(4096);
Readeeprom();
}
void Readeeprom (){
const char* said;
const char* pass;

mydata Varcustom;

EEPROM.get(0, Varcustom);
//Exception 28 error begin here
Serial.println(Varcustom.ssid);// does not show this print
}

Any help??

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions