pert:
That should not be the case if you're using delay(), since this is written so that it can't cause a watchdog timer timeout no matter how long the delay is. Of course if you have a delay caused by some blocking code that doesn't call delay() or yield() (or some other function that calls those functions), then you will get a timeout.
Did pasting a delay fix the problem?
I agree, it must have been blocking code rather long deIays - built around 2016 so recall of some specifics fading a bit! I have just revisited ESP8266 to try a couple of quick holiday investigations/updates, and yes, code examples from certain libraries (such as Oled) that had prolonged for loops caused some timeouts, and judicious use of yield() prevented this.
Also dug out and had a look at the last working version of my HX711 project code (which also used the same library (but 2016 version) and it had some long delays to allow viewing of serial messages etc, while it also looks like some small delays are sprinkled around to avoid freezing.The project H/W which is still around still runs as built then without freezing for long periods, so for my purposes, that certainly worked, so hopefully too for the OP
I can remember finding some useful clear info/help on yield/wdt back then, and thought I'd saved it, but has been hard to find, but found this from spark fun which looks useful for beginners ESP8266 Thing Hookup Guide - SparkFun Learn
and this might be interesting too ESP8266 Watchdogs in Arduino
Choosing slightly the wrong esp board can cause a few funny problems too, where code downloads and runs to a certain extent, but then freezes, (a recent problem I had when I thought I had a "lite" version) so it might be worth double checking which type of board you have, then appropriate IDE settings - board type, CPU frequency, upload speed etc, for eg Wemos D1 R2 & Mini, 80Mhz. Hope this helps....
Persistence and revisiting is the key with these darn microcontrollers (of any breed!)
Hmm, the newer library examples look a bit different from the older one, so I'm curious to try them. The example code looks so spartan, it should work....
I have a project in mind similar to monitoring beehives and have retrived working hardware I had at work in case I had a "play" during some holidays, and may find some time to try. If I find anything of interest, will report back. If I make headway on my own project, will definitely be looking at the sparkfun "Open Scale" for guidance, methods, and code to incorporate...