C API for BALTECH SDK

§ brp_BlePeriph_DefineService()

brp_errcode brp_BlePeriph_DefineService ( brp_protocol  protocol,
brp_buf  ServiceUUID,
size_t  ServiceUUID_len,
brp_BlePeriph_DefineService_Characteristics_Entry Characteristics,
size_t  Characteristics_len 
)

This command registers a new BLE service.

When a BLE Central tries to discover services, this service will be amongst the available ones.

This method has to be called when BLE is disabled, i.e. before calling brp_BlePeriph_Enable() .

Parameters
[in]protocolused to execute the command
[in]ServiceUUIDSpecifies the UUID (16 or 128 bits) of the BLE service
[in]ServiceUUID_len
[in]CharacteristicsList of characteristics
[in]Characteristics_len