-
Notifications
You must be signed in to change notification settings - Fork 535
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
ESP8266 HTTP OTA failed when HX711.h is included #69
Comments
can you share your code? |
It's a standard example: #include <ESP8266WiFi.h> const char* host = "esp8266-webupdate"; ESP8266WebServer httpServer(80); void setup(void){ Serial.begin(115200); while(WiFi.waitForConnectResult() != WL_CONNECTED){ MDNS.begin(host); httpUpdater.setup(&httpServer); MDNS.addService("http", "tcp", 80); void loop(void){ It works fine if I'm not including HX711 library but I get WDT reset when I'm trying to perform OTA with included library. |
Just tried to move include after all the others. Not helped at all, same error on OTA:
|
I think I've found the solution! And finally OTA is able to finish without WDT resets! As I understand it also will fix an issue causing resets when module is failed to initialize at setup(). |
@Werevolk |
Hi guys, I had the same problem as in the first post and could also solve it by commenting the yield part... Now I encounter a reset error when adding the line
The Error:
My code is actually nothing special, just WIFI Connect and MQTT initialisation. Now I am debugging line by line of my HX711 code and I am now at the line mentioned above. Any idea? edit: This is my code:
|
Hello Thanks for this publish. On HX711.h, i've add new variable named : unsigned long YIELDMILLIS;
This new, don't hangup my loop ;-) Bye ! |
thank you!!!! |
Hi! First off all, many thanks for great and easy to use library!
Recently I came over an issue when trying to implement OTA update in my sketch. Everything works fine from the example sketch that I found here: https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WebServer/examples/WebUpdate/WebUpdate.ino
But as soon as I include <HX711.h> in the examle it crashes with that in serial:
I'm using NodeMCU v3 by Lolin for tests.
That happens even when there is no scale.begin in code, only library include. For now I disabled OTA functionality, but hopefully this issue could be fixed.
Sorry for my bad English :)
The text was updated successfully, but these errors were encountered: