From bde654efb0d22de5bf4eb191206e912d94ff4b94 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 26 Nov 2018 20:06:59 +0100 Subject: [PATCH] sm_pairing_peripheral: add 0x1111 to service list, make it discoverable by sm_pairing_central --- example/sm_pairing_peripheral.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/sm_pairing_peripheral.c b/example/sm_pairing_peripheral.c index 0be46d1e1..ecb910886 100644 --- a/example/sm_pairing_peripheral.c +++ b/example/sm_pairing_peripheral.c @@ -78,6 +78,8 @@ const uint8_t adv_data[] = { 0x02, BLUETOOTH_DATA_TYPE_FLAGS, 0x06, // Name 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); @@ -93,6 +95,7 @@ static void sm_peripheral_setup(void){ /** * 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