-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you add eeprom- so that the switch state in the memory of ESP incase of blackout #9
Comments
My code here, // prototypes //on/off callbacks // Change this before you flash boolean wifiConnected = false; UpnpBroadcastResponder upnpBroadcastResponder; // Define relay // Switch void setup() // Initialise wifi connection if(wifiConnected){
////////////////////////////////// upnpBroadcastResponder.addDevice(*s1); ////////////////////////////////// //EPROM } void loop()
} void s1On() { void s1Off() { void s2On() { void s2Off() { void s3On() { void s3Off() { void s4On() { void s4Off() { // connect to wifi – returns true if successful or false if not WiFi.mode(WIFI_STA); // Wait for connection if (state){ return state; |
Looks good. Adding the eeprom support brings the code up another notch.!! Thanks! |
Does it work fine without your modifications ? If Yes, try switching to FS.h You can always use the EspExceptionDecoder to check where is the exception coming from |
It is not working with my current Node mcu. It is may be broken. I will check with a fresh Node Mcu next Saturday. |
Many thanks for this document. |
The code above does not working! Please help... |
Hi, I have had great success your library, and just wondered how I can add a manual switch and update alexa with the change. I have done it successfully with your single switch but finding the more library based multy switch more dificault to get my head around. Any help would be much appreciated. Regards, Cliff |
hello sir |
Thanks for this nice work. It helps me a lot. I was using some RF based system in my home. Now I want to replace with ESP and Amazon Echo. In my earlier system I used EEPROM to keep switch state stored in the memory. I was trying to add same codes in your code to have same functionality. But it generates WDT RESET! ESP is continuously restarting. Please help with this.
An example
http://www.instructables.com/id/Home-Automation-With-Arduino-Buttons-LCD-EEPROM-AN/?ALLSTEPS
The text was updated successfully, but these errors were encountered: