Microchip® Advanced Software Framework

immediate_alert.c File Reference

Immediate Alert service.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

#include "immediate_alert.h"

Functions

at_ble_status_t ias_alert_level_write (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, immediate_alert_level_t alert_level)
 write a characteristic to Immediate Alert Characteristics More...
 

at_ble_status_t ias_alert_level_write ( at_ble_handle_t  conn_handle,
at_ble_handle_t  char_handle,
immediate_alert_level_t  alert_level 
)

write a characteristic to Immediate Alert Characteristics

if with_response is True, write completion will be reported via AT_BLE_CHARACTERISTIC_WRITE_RESPONSE event

Parameters
[in]conn_handlehandle of the connection
[in]char_handlehandle of the characteristic
[in]alert_levelalert level need to write
Returns
AT_BLE_SUCCESS operation completed successfully
AT_BLE_FAILURE Generic error.

References at_ble_characteristic_write(), IAS_NO_SIGNED_WRITE, IAS_WRITE_LENGTH, IAS_WRITE_OFFSET, and IAS_WRITE_WITH_RESPONSE.

Referenced by pxp_monitor_app_button_event(), and rssi_update().