Go to the documentation of this file.
67 #include "custom_config.h"
73 #define FAST_OTAS_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
74 10 : CFG_MAX_CONNECTIONS)
75 #define FAST_OTAS_MAX_DATA_LEN 244
76 #define BLE_UUID_FAST_OTA_SERVICE 0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
77 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x07, 0xED, 0xA6
79 #define FAST_OTA_PATTERN_VALUE 0x474f4f44
120 typedef void (*
function)(void);
@ FAST_OTAS_EVT_CMD_NOTIFY_COMPLETE
sdk_err_t fast_otas_service_init(fast_otas_init_t *p_otas_init)
Add an FAST_OTA Service instance in the DB.
fast_otas_evt_type_t
FAST_OTA Service event type.
sdk_err_t fast_otas_notify_cmd_data(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to peer device.
uint8_t conn_idx
Index of connection.
FAST_OTA Service initialization variable.
@ FAST_OTAS_EVT_CMD_NOTIFICATION_DISABLED
void(* fast_otas_evt_handler_t)(fast_otas_evt_t *p_evt)
FAST_OTA Service event handler type.
@ FAST_OTAS_EVT_CMD_NOTIFICATION_ENABLED
fast_otas_evt_handler_t evt_handler
Handler to handle otas event.
@ FAST_OTAS_EVT_DATA_RECEIVE_DATA
uint8_t * p_data
Pointer to data.
fast_otas_evt_type_t evt_type
The FAST_OTAS event.
uint16_t sdk_err_t
SDK API result type.
@ FAST_OTAS_EVT_CMD_RECEIVE_DATA
uint16_t length
Length of data.