From da51c1f9749842b65608d6505a41b05981416443 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 2 Jun 2010 04:36:46 +0000 Subject: Add L2CAP service attribute table. Fix up ProtocolDescriptorList attributes, and add macros for used UUIDs to reduce typing and make the code easier to read. --- .../Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c') diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c index 6bb35f65d..c6b394819 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c @@ -36,14 +36,9 @@ */ const ServiceTable_t SDP_Services_Table[] PROGMEM = { - { // 128-bit UUID for the SDP service - .UUID = {BASE_80BIT_UUID, {0x00, 0x00, 0x00, 0x00, 0x00, 0x01}}, - .AttributeTable = SDP_Attribute_Table, - }, - { // 128-bit UUID for the RFCOMM service - .UUID = {BASE_80BIT_UUID, {0x00, 0x00, 0x00, 0x00, 0x00, 0x03}}, - .AttributeTable = RFCOMM_Attribute_Table, - }, + { .UUID = SDP_UUID , .AttributeTable = SDP_Attribute_Table }, + { .UUID = RFCOMM_UUID, .AttributeTable = RFCOMM_Attribute_Table }, + { .UUID = L2CAP_UUID , .AttributeTable = L2CAP_Attribute_Table }, }; /** Base UUID value common to all standardized Bluetooth services */ -- cgit v1.2.3