IronOS icon indicating copy to clipboard operation
IronOS copied to clipboard

use notify for real time BLE data

Open TomW1605 opened this issue 1 year ago • 2 comments

Describe the solution you'd like

curently you need to poll data from BLE however BLE provids functions for the server to notify the client of changes in data. this would prevent spaming data requests and provide more realtime data

Additional context

i have started working on this and got a basic proof of concept working using the bulk data polling callback to trigger a notify on the temp. this worked however given it still relies on poling dosnt really help. unfortunatly i dont know/understand enough about the program flow of the code to work out where best to put the notify callback.

here is what i have so far https://github.com/TomW1605/IronOS/commit/330761cbde81234337f49f435f186d8e60f1f8a5

i do intend to keep working on this however i think it will either take a long time or i will need help from someone with a better understanding of the code

TomW1605 avatar Feb 05 '23 10:02 TomW1605