Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LinkLossService Class Reference
This service defines behavior when a link is lost between two devices. More...
#include <LinkLossService.h>
Public Member Functions | |
LinkLossService (BLE &bleIn, callback_t callbackIn, AlertLevel_t levelIn=NO_ALERT) | |
void | setCallback (callback_t newCallback) |
Update the callback. | |
void | setAlertLevel (AlertLevel_t newLevel) |
Update alertness level. | |
Protected Member Functions | |
virtual void | onDataWritten (const GattWriteCallbackParams *params) |
This callback allows receiving updates to the AlertLevel characteristic. |
Detailed Description
This service defines behavior when a link is lost between two devices.
Service: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.link_loss.xml Alertness Level Char: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.alert_level.xml
Definition at line 28 of file LinkLossService.h.
Constructor & Destructor Documentation
LinkLossService | ( | BLE & | bleIn, |
callback_t | callbackIn, | ||
AlertLevel_t | levelIn = NO_ALERT |
||
) |
- Parameters:
-
bleIn BLE object for the underlying controller. callbackIn Callback invoked upon disconnection. levelIn Alert level.
Definition at line 44 of file LinkLossService.h.
Member Function Documentation
virtual void onDataWritten | ( | const GattWriteCallbackParams * | params ) | [protected, virtual] |
This callback allows receiving updates to the AlertLevel characteristic.
- Parameters:
-
[in] params Information about the characteristic being updated.
Definition at line 85 of file LinkLossService.h.
void setAlertLevel | ( | AlertLevel_t | newLevel ) |
Update alertness level.
Definition at line 74 of file LinkLossService.h.
void setCallback | ( | callback_t | newCallback ) |
Update the callback.
Definition at line 67 of file LinkLossService.h.
Generated on Tue Jul 12 2022 14:26:47 by
