softplus/esp8266-wifi-timing

My BSSID actually starts by 0

Opened this issue · 0 comments

if (_settings.wifi_channel==0 || _settings.wifi_bssid[0]==0) return false;

Hi John,

First of all a huge thank you for your work.

I'm on a home project to improve my v1 thermometers that monitor and drive house's heating. V1 devices deplete battery within two weeks. I found your work showcasing how to solve one of my problems, namely random-quality wifi connections.

I'm far from being a C++ / Arduino expert and I'm learning from your code for a couple days. Thank you for introducing me to EEPROM management, classes and structures!

At first your project did not worked for me.
wifi_helper.cpp line 83 states that if _settings.wifi_bssid[0]==0 then _fast_connect won't do its magic and _normal_connect will take over.
It appears that my BSSID starts with '00'. So I removed this test.

Tonight, it works ! My cycle includes wakeup, measurement, connection, sending data, deepsleep.
I'm currently having an average cycle time of 1700ms using _fast_connect. I will looking on how to improve this because I some time have a 600ms cycle time.

All the best,
Thomas