mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-30 07:21:20 +00:00
sm_pairing_peripheral: add 0x1111 to service list, make it discoverable by sm_pairing_central
This commit is contained in:
parent
b178f6a6e6
commit
bde654efb0
@ -78,6 +78,8 @@ const uint8_t adv_data[] = {
|
|||||||
0x02, BLUETOOTH_DATA_TYPE_FLAGS, 0x06,
|
0x02, BLUETOOTH_DATA_TYPE_FLAGS, 0x06,
|
||||||
// Name
|
// Name
|
||||||
0x0b, BLUETOOTH_DATA_TYPE_COMPLETE_LOCAL_NAME, 'S', 'M', ' ', 'P', 'a', 'i', 'r', 'i', 'n', 'g',
|
0x0b, BLUETOOTH_DATA_TYPE_COMPLETE_LOCAL_NAME, 'S', 'M', ' ', 'P', 'a', 'i', 'r', 'i', 'n', 'g',
|
||||||
|
// Incomplete List of 16-bit Service Class UUIDs -- 1111 - only valid for testing!
|
||||||
|
0x03, BLUETOOTH_DATA_TYPE_INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS, 0x11, 0x11,
|
||||||
};
|
};
|
||||||
const uint8_t adv_data_len = sizeof(adv_data);
|
const uint8_t adv_data_len = sizeof(adv_data);
|
||||||
|
|
||||||
@ -93,6 +95,7 @@ static void sm_peripheral_setup(void){
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Choose ONE of the following configurations
|
* Choose ONE of the following configurations
|
||||||
|
* Bonding is disabled to allow for repeated testing. It can be enabled with SM_AUTHREQ_BONDING
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// LE Legacy Pairing, Just Works
|
// LE Legacy Pairing, Just Works
|
||||||
|
Loading…
x
Reference in New Issue
Block a user