Open PiteousHonking opened 6 years ago
I'm also with this problem. We need help!!!
settings invalidated means something called resetSettings() explicitly. And that makes no sense, check your code.
Can you expand on what you mean, is there a way of determining what it is that's calling resetSettings?
That sketch is surely not your entire code
I cant even get blynk to connect, it just sits in blynk.connect loop. hmm
ahh I forgot #define BLYNK_PRINT Serial
I cannot reproduce so this must be in your code. Not sure what else to test here.
I got, i include the send sensor, BlynkTimer and i cheked the pins (D4, D5 and D6) because i had chnged.
//#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include <EEPROM.h>
#include <max6675.h>
BlynkTimer timer;
int thermoDO = D4;
int thermoCS = D5;
int thermoCLK = D6;
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
void sendSensor();
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "TOKEN";
void setup()
{
EEPROM.begin(512);
Serial.begin(115200);
WiFiManager wifiManager;
//wifiManager.resetSettings(); //Uncomment this to wipe WiFi settings from EEPROM on boot. Comment out and recompile/upload after 1 boot cycle.
wifiManager.autoConnect("NodeMCU");
//if you get here you have connected to the WiFi
Serial.println("connected...yeey :)");
//pinMode(BUILTIN_LED, OUTPUT); // Initialize the BUILTIN_LED pin as an output, I like blinkies.
Blynk.begin(auth, WiFi.SSID().c_str(), WiFi.psk().c_str());
timer.setInterval(1000L, sendSensor);
}
void loop()
{
timer.run();
Blynk.run(); // Commented out for a short time.
}
void sendSensor(){
Blynk.virtualWrite(V5, thermocouple.readCelsius());
}
I don't think it is 'his code' I have the same problem with the unaltered example code "autoconnect with custom parameters"
Settings invalidated come from wm.resetSettings There is no other reason for it occur unless you are calling it
Thanks, I see the example called that 'for testing'. I understand now. Learning every day :-)
I just commented it out in that one example in developement , it was not supposed to be active oops sorry
That might be a good idea. I overlooked it as I thought that was what the SPIFFS.format(); was for :-) But I start to understand the code better now. Tnx
----------------------------- Remove above -----------------------------
Basic Infos
Adding the max6675 library to a sketch causes settings invalidated error
Hardware
WiFimanager Branch/Release: Development
Hardware: Esp8266 WemosD1 https://github.com/adafruit/MAX6675-library 1.0 installed Arduino 1.8.5 IDE
Description
The attached code works as expected, creates an AP, stores wifi settings and Blynk auth token and connects to Blynk server sucessfully
If I include the max6675.h library ait will run through the same process but fail to connect to the Blynk server with the error:
WM: settings invalidated WM: THIS MAY CAUSE AP NOT TO START UP PROPERLY. YOU NEED TO COMMENT IT OUT AFTER ERASING THE DATA. (⸮)⸮R(⸮⸮⸮
Comment out the max665.h library and it works again. Also posted on the blynk forum but it seems to be a wifimanager/max6675 issue.
Settings in IDE
Module: Wemos D1
Additional libraries: https://github.com/adafruit/MAX6675-library
Sketch
Debug Messages