From cb52e4371e770e79b3648120452fc4df908887a3 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 1 Jun 2010 04:22:20 +0000 Subject: Fix the encoding of UUIDs in the SDP server so that they match the Bluetooth UUID format properly. --- Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c') diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c b/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c index 9df89d51b..537c81f0a 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c @@ -40,14 +40,14 @@ const struct { uint8_t Header; uint16_t Size; - ClassUUID_t UUIDList[]; + ItemUUID_t UUIDList[]; } PROGMEM SDP_Attribute_ServiceClassIDs = { .Header = (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable16Bit), - .Size = SWAPENDIAN_16(sizeof(ClassUUID_t) * 1), + .Size = SWAPENDIAN_16(sizeof(ItemUUID_t) * 1), .UUIDList = { - {.Header = (SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), .UUID = {BASE_96BIT_UUID, 0x00, 0x10, 0x00, 0x00}} + {.Header = (SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), .UUID = {BASE_80BIT_UUID, {0x00, 0x00, 0x00, 0x00, 0x10, 0x00}},} } }; @@ -128,14 +128,14 @@ const struct { uint8_t Header; uint16_t Size; - ClassUUID_t UUIDList[]; + ItemUUID_t UUIDList[]; } PROGMEM RFCOMM_Attribute_ServiceClassIDs = { .Header = (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable16Bit), - .Size = SWAPENDIAN_16(sizeof(ClassUUID_t) * 1), + .Size = SWAPENDIAN_16(sizeof(ItemUUID_t) * 1), .UUIDList = { - {.Header = (SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), .UUID = {BASE_96BIT_UUID, 0x01, 0x11, 0x00, 0x00}} + {.Header = (SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), .UUID = {BASE_80BIT_UUID, {0x00, 0x00, 0x00, 0x00, 0x11, 0x01}},} } }; -- cgit v1.2.3