tested on another unit: confirmed BLE make it problematic (very unstable wifi, etc…)
tried 250/200 with no luck: I will wait for a bit more direction before testing further
looking here:
by my poor understanding it seems window and interval are set the same?
Apparently OMG works fine: can we take those values?
Hi, the (new) defaults are 320ms for interval and 200ms window.
Seems OpenMQTTGateway uses 160ms/160ms.
I faced wifi issues with lower values so as described in the issues…
So with 160ms/160ms it works for you, did I understand that correctly?
I will do more test this evening or tomorrow.
By the way I have also this symptoms:
hence I think it is the same problem.
For reference I see old defaults where:
interval: 512 ms
window: 48 ms
so I will try starting from that.
In the meanwhile I can report disabling BLE makes WiFi and ESP stable again
I have a question in the meanwhile: for an application like MiFlora where you don’t care about “fast response” like presence detection is there any downside to go to something like
interval: 4000 ms
window: 40 ms
as far as I understand on ESP32 same HW/Antenna is shared by WiFi and BLE hence more you congestion BLE less you leave to WiFi.
Is that correct?
I just can tell from my own experience where I had troubles getting the messages from the Xiaomi devices when the window was less than 2/3 or 1/2 of the interval.
That‘s why I initiated the issue which resulted in the new default values after some testing.
For me the new default values work for several weeks now, devices run stable, at least controlling work when I need it and I get constantly values from the sensors, I don‘t see any disconnects.
So a bit more from my side although I had little time to play with it.
I removed the BLE component from the firmware and I can definitely confirm that without it my Esp32 is perfectly stable for days (no disconnections, signal is -45dB).
i tried something like:
interval: 1000 ms
window: 50 ms
but still unstable.
I have to say I had, with previous versione of EspHome (1.13.6), BLE enabled on 2 devices and these were not really table as well.
Could it be something else not related to interval / window?
Does the OTA work on your’s ESP32 now? What parameter using for “scan_parameters” section.
My ESP32 connect to Google WiFi and OTA does’n work when enable “esp32_ble_tracker”