![]() |
BALTECH Docs |
C API for BALTECH SDK
|
| 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() .
| [in] | protocol | used to execute the command |
| [in] | ServiceUUID | Specifies the UUID (16 or 128 bits) of the BLE service |
| [in] | ServiceUUID_len | |
| [in] | Characteristics | List of characteristics |
| [in] | Characteristics_len |