Immediate Alert Service module.
More...
|
struct | ble_ias_evt_t |
| Immediate Alert Service event. More...
|
|
struct | ble_ias_init_t |
| Immediate Alert Service init structure. This contains all options and data needed for initialization of the service. More...
|
|
struct | ble_ias_s |
| Immediate Alert Service structure. This contains various status information for the service. More...
|
|
This module implements the Immediate Alert Service with the Alert Level characteristic. During initialization it adds the Immediate Alert Service and Alert Level characteristic to the BLE stack database.
The application must supply an event handler for receiving Immediate Alert Service events. Using this handler, the service will notify the application when the Alert Level characteristic value changes.
The service also provides a function for letting the application poll the current value of the Alert Level characteristic.
- Note
- The application must propagate BLE stack events to the Immediate Alert Service module by calling ble_ias_on_ble_evt() from the BLE Stack Event Handler callback.
Enumerator |
---|
BLE_IAS_EVT_ALERT_LEVEL_UPDATED |
Alert Level Updated event.
|
- Parameters
-
[out] | p_ias | Immediate Alert Service structure. This structure will have to be supplied by the application. It will be initialized by this function, and will later be used to identify this particular service instance. |
[in] | p_ias_init | Information needed to initialize the service. |
- Returns
- NRF_SUCCESS on successful initialization of service, otherwise an error code.
Handles all events from the BLE stack of interest to the Immediate Alert Service.
- Parameters
-
[in] | p_ias | Immediate Alert Service structure. |
[in] | p_ble_evt | Event received from the BLE stack. |
uint32_t ble_ias_alert_level_get |
( |
ble_ias_t * |
p_ias, |
|
|
uint8_t * |
p_alert_level |
|
) |
| |
- Parameters
-
[in] | p_ias | Immediate Alert Service structure. |
[out] | p_alert_level | Current Alert Level value. |