Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions | Protected Member Functions
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. More...
 
void setAlertLevel (AlertLevel_t newLevel)
 Update alertness level. More...
 

Protected Member Functions

virtual void onDataWritten (const GattWriteCallbackParams *params)
 This callback allows receiving updates to the AlertLevel characteristic. More...
 

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 30 of file LinkLossService.h.

Constructor & Destructor Documentation

LinkLossService ( BLE bleIn,
callback_t  callbackIn,
AlertLevel_t  levelIn = NO_ALERT 
)
Parameters
bleInBLE object for the underlying controller.
callbackInCallback invoked upon disconnection.
levelInAlert level.

Definition at line 46 of file LinkLossService.h.

Member Function Documentation

virtual void onDataWritten ( const GattWriteCallbackParams params)
protectedvirtual

This callback allows receiving updates to the AlertLevel characteristic.

Parameters
[in]paramsInformation about the characteristic being updated.

Definition at line 87 of file LinkLossService.h.

void setAlertLevel ( AlertLevel_t  newLevel)

Update alertness level.

Definition at line 76 of file LinkLossService.h.

void setCallback ( callback_t  newCallback)

Update the callback.

Definition at line 69 of file LinkLossService.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.