Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Opensprinkler on ESP8266 #50549

    alexelite
    Participant

    Hello all,

    First I want to thank everyone involved in this great project.

    I compiled firmware 2.1.7 and 2.1.8 on Arduino IDE 1.8.5, for a breadboard setup, but wifi connectivity did not work properly. The AP was visible but I could not connect to it. After using the test mode found in 2.1.8, things did not improve. Long story short, after a few days tinkering with the code I managed to pinpoint the problem to the function “ui_state_machine()”. Commenting it solved the problem, wifi working in ap mode and in station mode. Digging even deeper i thing the problem is somewhere in PCF8574 functions. When reading the buttons state the sketch loops to long without a delay() or a yield() and the network processes don’t get called.
    This is pretty weird considering there are almost no external libs and the code is what Ray and everyone else uses, and works.
    Moving the buttons on ESP8266 GPIOs fixes the issue. I tried esp8266 core 2.4.0 and 2.4.1, no change.

    Did anybody encounter this behavior? Could my PCF8574 be defective?

Viewing 1 post (of 1 total)