BlueToe
an alternative GATT/BLE implementation
|
install a callback that will be called, when a connection event happened. More...
#include <bluetoe/link_layer/include/bluetoe/connection_event_callback.hpp>
install a callback that will be called, when a connection event happened.
The intended use for this feature are cases, where the CPU is switched off and even the high priority ISR of the scheduled radio will not be served.
The parameter T have to be a class type with following none static member function:
void ll_connection_event_happend();
The template parameter RequiredTimeMS defines the minimum time available until the next connection event will happen. The callback is only called, if the given time is available. If the parameter is 0, the callback will be called on every connection event. The link layer will not use peripheral latency to increase the time between two connection events to reach the RequiredTimeMS.