mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #855] Saving custom parameters to EEPROM #719
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#719
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @megaESP on GitHub (Mar 21, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/855
First of all big thanks to Tzapu, Tablatronix and everyone else involved in this project. Kudos to you guys for your hard work, it is very much appreciated.
I was wondering if there is an example showing saving of custom parameters in EEPROM. I know it is one of the to do list, but in case you guys have something to share even half finished code, that will be helpful.
Thanks again
:-)
@Muhammed-Hayr-Ali commented on GitHub (Mar 22, 2019):
https://github.com/Muhammed-Hayr-Ali/wi-fi-Manager
@megaESP commented on GitHub (Mar 26, 2019):
Thank you very much Muhammed! Inspired from your example I put together this following snippet. However, I am not getting into 'shouldSaveConfig' condition where EEPROM should be written. Can you please shed some light on it? I would really appreciate it. Thanks again
#include <Arduino.h>
#include <EEPROM.h>
#include <WiFiManager.h>
char getParam[200]="someText";
bool shouldSaveConfig = false;
void configModeCallback (WiFiManager *myWiFiManager) {
Serial.println("config mode");
}
void saveConfigCallback () {
Serial.println("Should save config now");
shouldSaveConfig = true;
}
void setup() {
Serial.begin(115200);
EEPROM.begin(512);
Serial.println(EEPROM.readString(0));
}
void loop() {
}
@Muhammed-Hayr-Ali commented on GitHub (Mar 27, 2019):
this is example for blynk auth parameter
@megaESP commented on GitHub (Mar 29, 2019):
Thank you! Greatly appreciated
:-)
@Anrikigai commented on GitHub (Oct 19, 2019):
Sorry, is it possible to configure also a blynk host?
I use my ow server, so Auth token is not enough...
@lequangdau1993 commented on GitHub (Mar 29, 2020):
@Muhammed-Hayr-Ali GREAT CONTRIBUTION !!!
@SerhiiZhilin commented on GitHub (Aug 20, 2020):
In this case eeprom_saveconfig(); is called each time after entering config no matter on shouldSaveConfig value?