This is the client for the Link Loss Service.
More...
This is the client for the Link Loss Service.
|
#define | BLE_LLC_ALERT_LEVEL_UUID (0x2A06) |
|
#define | BLE_LLC_ALERT_LEVEL_LEN (1) |
|
◆ e_ble_llc_alert_level_level_t
Alert Level Level enumeration.
Enumerator |
---|
BLE_LLC_ALERT_LEVEL_LEVEL_NO_ALERT | No Alert
|
BLE_LLC_ALERT_LEVEL_LEVEL_MILD_ALERT | Mild Alert
|
BLE_LLC_ALERT_LEVEL_LEVEL_HIGH_ALERT | High Alert
|
◆ e_ble_llc_char_idx_t
Link Loss characteristic ID.
◆ e_ble_llc_event_t
Link Loss client event type.
◆ R_BLE_LLC_ReadAlertLevel()
Read Alert Level characteristic value from the remote GATT database.
- Parameters
-
[in] | conn_hdl | Connection handle. |
- Returns
- ble_status_t
◆ R_BLE_LLC_WriteAlertLevel()
ble_status_t R_BLE_LLC_WriteAlertLevel |
( |
uint16_t |
conn_hdl, |
|
|
const uint8_t * |
p_value |
|
) |
| |
Write Alert Level characteristic value to remote GATT database.
- Parameters
-
[in] | conn_hdl | Connection handle. |
[in] | p_value | Alert Level characteristic value to write. |
- Returns
- ble_status_t
◆ R_BLE_LLC_GetAlertLevelAttrHdl()
Get Alert Level attribute handles.
- Parameters
-
[in] | p_addr | Bluetooth device address for the attribute handles. |
[out] | p_hdl | The pointer to store the retrieved attribute handles. |
- Returns
- ble_status_t
◆ R_BLE_LLC_Init()
◆ R_BLE_LLC_ServDiscCb()
void R_BLE_LLC_ServDiscCb |
( |
uint16_t |
conn_hdl, |
|
|
uint8_t |
serv_idx, |
|
|
uint16_t |
type, |
|
|
void * |
p_param |
|
) |
| |
Link Loss client discovery callback.
- Parameters
-
[in] | conn_hdl | Connection handle |
[in] | serv_idx | Service instance index. |
[in] | type | Service discovery event type. |
[in] | p_param | Service discovery event parameter. |
- Returns
- ble_status_t
◆ R_BLE_LLC_GetServAttrHdl()
Get Link Loss client attribute handle.
- Parameters
-
[in] | p_addr | Bluetooth device address for the attribute handles. |
[out] | p_hdl | The pointer to store the retrieved attribute handles. |
◆ R_BLE_LLC_Disconnect()
ble_status_t R_BLE_LLC_Disconnect |
( |
uint16_t |
conn_hdl, |
|
|
uint8_t |
reason, |
|
|
uint8_t * |
alertlevel |
|
) |
| |
Alert when Disconnected.
- Parameters
-
[in] | conn_hdl | Connection handle. |
[in] | reason | Disconnected reason. |
[out] | alertlevel | Output location of Alert Level characteristic value. |
- Returns
- ble_status_t