| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Immediate Alert Service (IAS) More...
Data Structures | |
| struct | bt_ias_cb | 
| Immediate Alert Service callback structure.  More... | |
| struct | bt_ias_client_cb | 
Macros | |
| #define | BT_IAS_CB_DEFINE(_name) static const STRUCT_SECTION_ITERABLE(bt_ias_cb, _CONCAT(bt_ias_cb_, _name)) | 
| Register a callback structure for immediate alert events.  More... | |
Enumerations | |
| enum | bt_ias_alert_lvl { BT_IAS_ALERT_LVL_NO_ALERT , BT_IAS_ALERT_LVL_MILD_ALERT , BT_IAS_ALERT_LVL_HIGH_ALERT } | 
Functions | |
| int | bt_ias_local_alert_stop (void) | 
| Method for stopping alert locally.  More... | |
| int | bt_ias_client_alert_write (struct bt_conn *conn, enum bt_ias_alert_lvl) | 
| Set alert level.  More... | |
| int | bt_ias_discover (struct bt_conn *conn) | 
| Discover Immediate Alert Service.  More... | |
| int | bt_ias_client_cb_register (const struct bt_ias_client_cb *cb) | 
| Register Immediate Alert Client callbacks.  More... | |
Immediate Alert Service (IAS)
[Experimental] Users should note that the APIs can change as a part of ongoing development.
| #define BT_IAS_CB_DEFINE | ( | _name | ) | static const STRUCT_SECTION_ITERABLE(bt_ias_cb, _CONCAT(bt_ias_cb_, _name)) | 
#include <include/zephyr/bluetooth/services/ias.h>
Register a callback structure for immediate alert events.
| _name | Name of callback structure. | 
| enum bt_ias_alert_lvl | 
#include <include/zephyr/bluetooth/services/ias.h>
| Enumerator | |
|---|---|
| BT_IAS_ALERT_LVL_NO_ALERT | No alerting should be done on device  | 
| BT_IAS_ALERT_LVL_MILD_ALERT | Device shall alert  | 
| BT_IAS_ALERT_LVL_HIGH_ALERT | Device should alert in strongest possible way  | 
| int bt_ias_client_alert_write | ( | struct bt_conn * | conn, | 
| enum | bt_ias_alert_lvl | ||
| ) | 
#include <include/zephyr/bluetooth/services/ias.h>
Set alert level.
| conn | Bluetooth connection object | 
| bt_ias_alert_lvl | Level of alert to write | 
| int bt_ias_client_cb_register | ( | const struct bt_ias_client_cb * | cb | ) | 
#include <include/zephyr/bluetooth/services/ias.h>
Register Immediate Alert Client callbacks.
| cb | The callback structure | 
| int bt_ias_discover | ( | struct bt_conn * | conn | ) | 
#include <include/zephyr/bluetooth/services/ias.h>
Discover Immediate Alert Service.
| conn | Bluetooth connection object | 
| int bt_ias_local_alert_stop | ( | void | ) | 
#include <include/zephyr/bluetooth/services/ias.h>
Method for stopping alert locally.