wayne-love / ESPySpa

MIT License
10 stars 7 forks source link

two updates -Wi-Fi Manager and Supporting SVM2 with older firmware #40

Closed lucasnz closed 1 month ago

lucasnz commented 1 month ago
  1. There appears to be a bug in the Wi-Fi system for ESP32s that effects Wi-Fi Manager. The workaround is to set a timeout for the Wi-Fi manager. Otherwise, the Wi-Fi Manager stops after 60 seconds. See commit for link and more info.
  2. Per my discord post, my new SVM2 controller has the same registers as the SV3. I have tweaked the code to support both.

The updated register code looks for ":" and increments a counter. Once we've reached 12, we've read everything. I considered another option, waiting until the counter reached statusResponseMinFields, then stopping when we reach a ":'.