Go to the documentation of this file.
67 #include "custom_config.h"
73 #define OTAS_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
74 10 : CFG_MAX_CONNECTIONS)
75 #define OTAS_MAX_DATA_LEN 244
76 #define BLE_UUID_OTA_SERVICE 0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
77 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x04, 0xED, 0xA6
78 #define OTAS_CTRL_ENTER_DFU 0x474f4f44
119 typedef void (*
function)(void);
sdk_err_t otas_notify_tx_data(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to peer device.
@ OTAS_EVT_TX_NOTIFICATION_ENABLED
void(* otas_evt_handler_t)(otas_evt_t *p_evt)
OTA Service event handler type.
uint8_t * p_data
Pointer to data.
uint8_t conn_idx
Index of connection.
@ OTAS_EVT_RX_RECEIVE_DATA
uint16_t length
Length of data.
@ OTAS_EVT_TX_NOTIFICATION_DISABLED
OTA Service initialization variable.
uint16_t sdk_err_t
SDK API result type.
sdk_err_t otas_service_init(otas_init_t *p_otas_init)
Add an OTA Service instance in the DB.
@ OTAS_EVT_NOTIFY_COMPLETE
@ OTAS_EVT_DFU_MODE_ENTER
otas_evt_type_t evt_type
The OTAS event.
otas_evt_handler_t evt_handler
Handler to handle otas event.
otas_evt_type_t
OTA Service event type.