AIROC™ BTSDK v4.0 - Documentation | ||||
Typedefs | |
typedef void( | wiced_ota_firmware_upgrade_status_callback_t )(uint8_t status) |
An optional callback to be executed when the OTA Firmware Upgrade state changes. More... | |
typedef wiced_bt_gatt_status_t( | wiced_ota_firmware_upgrade_send_data_callback_t )(wiced_bool_t is_notification, uint16_t conn_id, uint16_t attr_handle, uint16_t val_len, uint8_t *p_val) |
An optional callback to be executed to before sending data over the air. More... | |
typedef void( | wiced_ota_firmware_event_callback_t )(uint16_t event, void *p_data) |
A callback used in Transfer-Only mode to pass event/data to upper layer. More... | |
typedef void( wiced_ota_firmware_event_callback_t)(uint16_t event, void *p_data) |
A callback used in Transfer-Only mode to pass event/data to upper layer.
event | : OTA event that needs to be processed (see OTA firmware upgrade callback events) |
p_data | : Pointer to OTA event data |
typedef wiced_bt_gatt_status_t( wiced_ota_firmware_upgrade_send_data_callback_t)(wiced_bool_t is_notification, uint16_t conn_id, uint16_t attr_handle, uint16_t val_len, uint8_t *p_val) |
An optional callback to be executed to before sending data over the air.
The application can register this callback, for example, when it needs to encrypt data before it is sent out as a notification.
is_notification | : Set to WICED_TRUE to send notification, WICED_FALSE to send indication. |
conn_id | : Connection ID |
attr_handle | : Handle of the attribute to notify. |
val_len | : The length of the data. |
p_val | : The pointer to the data. |
typedef void( wiced_ota_firmware_upgrade_status_callback_t)(uint8_t status) |
An optional callback to be executed when the OTA Firmware Upgrade state changes.
The application can register the callback to execute when the client starts, aborts or completes the OTA firmware upgrade process. When the firmware has been downloaded and verified and before a callback is executed before the library restarts. For example, if the application needs to drop all connections.
status | : OTA firmware upgrade status (see OTA firmware upgrade status codes) |