FreeRTOS: BLE
BLE
Return to main page ↑
IotBle_CreateService

Create a new service.

BTStatus_t IotBle_CreateService( BTService_t * pService,
IotBleAttributeEventCallback_t pEventsCallbacks[] );

Allocate memory for a new service.

Parameters
[in]pService: Service to create
[in]pEventsCallbacksCall backs for events on each attributes in the service.
Returns
Returns eBTStatusSuccess on successful call.
IotBle_CreateService
BTStatus_t IotBle_CreateService(BTService_t *pService, IotBleAttributeEventCallback_t pEventsCallbacks[])
Create a new service.
IotBleAttributeEventCallback_t
void(* IotBleAttributeEventCallback_t)(IotBleAttributeEvent_t *pEventParam)
Callback called when a request on a attribute is made by the remote device.
Definition: iot_ble.h:123
BTStatus_t
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:98