Chat freely about anything...

User avatar
By Danish
#46675 I am using this code https://gist.github.com/dogrocker/f998dde4dbac923c47c1 which saves the ssid and paswd in the eeprom. the problem i am facing is whenever i clear the eeprom the ssid and paswd is not clearing and the ssid and paswd is still present in the eeprom. Code i am using for clearing eeprom.
Code: Select all/*
 * EEPROM Clear
 *
 * Sets all of the bytes of the EEPROM to 0.
 * This example code is in the public domain.

 */

#include <EEPROM.h>

void setup()
{
  EEPROM.begin(512);
  // write a 0 to all 512 bytes of the EEPROM
  for (int i = 0; i < 512; i++)
    EEPROM.write(i, 0);

  // turn the LED on when we're done
  pinMode(13, OUTPUT);
  digitalWrite(13, HIGH);
  EEPROM.end();
}

void loop()
{
}