Skip to content

Instantly share code, notes, and snippets.

@ByErdem
Created August 15, 2017 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ByErdem/32d1a6b355f0ca8134cb693d24f15d65 to your computer and use it in GitHub Desktop.
Save ByErdem/32d1a6b355f0ca8134cb693d24f15d65 to your computer and use it in GitHub Desktop.
#include "EEPROM.h";
// This code is used for save wifi name and password.
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.print("deneme");
int a=21;
int b1 =1;
char str[]= "wifi_adi|wifi_sifresi";
int c;
EEPROM.write(0,a);
Serial.print("Kayit basarili");
c=EEPROM.read(0);
Serial.print(c);
for(int i = 1; i < a+1; i++){
EEPROM.write(i,str[i-1]);
//theBuffer[i] = EEPROM.read(i);
Serial.print(str[i-1]);
}
for(int i = 1; i<c+1;i++){
char okunan = EEPROM.read(i);
Serial.print(okunan);
}
}
void loop() {
// put your main code here, to run repeatedly:
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment