thorrak / tiltbridge

Tilt Hydrometer to WiFi Bridge
http://www.tiltbridge.com/
Other
61 stars 27 forks source link

Adjust BLE scan window and interval #75

Closed pletch closed 3 years ago

pletch commented 3 years ago

I think we should proportion a little more time to the Wifi radio so the Window and Interval were adjusted. I selected prime numbers for both to hopefully reduce risk of developing a beat frequency between the advertising interval of a Tilt and the scan interval time. Please test and let me know if the settings create any issues with actually discovering and receiving regular updates from a physical Tilt device. I have been using my emulator with two different ESP32 devices each using a 750 ms sleep and a 50 ms duration for which advertising is on. I am unsure what the actual Tilt uses but Thorrak mentioned the Tilts send out advertisements about every 800 ms.