Add uuid information 26/134126/1
authorInjun Yang <injun.yang@samsung.com>
Thu, 15 Jun 2017 00:40:26 +0000 (09:40 +0900)
committerInjun Yang <injun.yang@samsung.com>
Thu, 15 Jun 2017 00:40:26 +0000 (09:40 +0900)
Change-Id: If21142bbd025ef8f4f601a3aac33a0ca370c02d2

src/bluetooth-common.c

index cbc293788d86fdd3f9d3e88d5e3ecbca2e041a3c..73d87f1bfb78fbaed3e1f019ac9ef07904c18794 100644 (file)
@@ -184,6 +184,18 @@ int bt_get_uuid_name(const char *uuid, char **name)
                {"1810", "Blood Pressure"},
                {"1811", "Alert Notification Service"},
                {"1812", "Human Interface Device"},
+               {"1813", "Scan Parameters"},
+               {"1814", "Running Speed and Cadence"},
+               {"1815", "Automation IO"},
+               {"1816", "Cycling Speed and Cadence"},
+               {"1818", "Cycling Power"},
+               {"1819", "Location and Navigation"},
+               {"181A", "Environmental Sensing"},
+               {"181B", "Body Composition"},
+               {"181C", "User Data"},
+               {"181D", "Weight Scale"},
+               {"181E", "Bond Management"},
+               {"181F", "Continuous Glucose Monitoring"},
 
                /* GATT Declarations */
                {"2800", "Primary Service Declaration"},
@@ -214,8 +226,18 @@ int bt_get_uuid_name(const char *uuid, char **name)
                {"2A08", "Date Time"},
                {"2A09", "Day of Week"},
                {"2A0A", "Day Date Time"},
+               {"2A11", "Time with DST"},
+               {"2A12", "Time Accuracy"},
+               {"2A13", "Time Source"},
+               {"2A14", "Reference Time Information"},
+               {"2A16", "Time Update Control Point"},
+               {"2A17", "Time Update State"},
+               {"2A18", "Glucose Measurement"},
                {"2A19", "Battery Level"},
+               {"2A1C", "Temperature Measurement"},
+               {"2A1D", "Temperature Type"},
                {"2A1E", "Intermediate Temperature"},
+               {"2A21", "Measurement Interval"},
                {"2A23", "System ID"},
                {"2A24", "Model Number String"},
                {"2A25", "Serial Number String"},
@@ -225,13 +247,36 @@ int bt_get_uuid_name(const char *uuid, char **name)
                {"2A29", "Manufacturer Name String"},
                {"2A2A", "IEEE 11073-20601 Regulatory Certification Data List"},
                {"2A2B", "Current Time"},
+               {"2A34", "Glucose Measurement Context"},
+               {"2A35", "Blood Pressure Measurement"},
                {"2A37", "Heart Rate Measurement"},
                {"2A38", "Body Sensor Location"},
+               {"2A39", "Heart Rate Control Point"},
                {"2A3F", "Alert Status"},
                {"2A46", "New Alert"},
+               {"2A49", "Blood Pressure Feature"},
                {"2A4A", "HID Information"},
                {"2A4C", "HID Control Point"},
                {"2A50", "PnP ID"},
+               {"2A51", "Glucose Feature"},
+               {"2A52", "Record Access Control Point"},
+               {"2A53", "RSC Measurement"},
+               {"2A54", "RSC Feature"},
+               {"2A55", "SC Control Point"},
+               {"2A56", "Digital"},
+               {"2A58", "Analog"},
+               {"2A5A", "Aggregate"},
+               {"2A5B", "CSC Measurement"},
+               {"2A5C", "CSC Feature"},
+               {"2A5D", "Sensor Location"},
+               {"2A63", "Cycling Power Measurement"},
+               {"2A64", "Cycling Power Vector"},
+               {"2A65", "Cycling Power Feature"},
+               {"2A66", "Cycling Power Control Point"},
+               {"2A67", "Location and Speed"},
+               {"2A68", "Navigation"},
+               {"2A6D", "Pressure"},
+               {"2A6E", "Temperature"},
 
                /* Custom uuids */
                {"7905F431-B5CE-4E99-A40F-4B1E122D00D0", "Apple Notification Center Service"},
@@ -391,6 +436,8 @@ int _bt_get_error_code(int origin_error)
                return BT_ERROR_AUTH_REJECTED;
        case BLUETOOTH_ERROR_DEVICE_POLICY_RESTRICTION:
                return BT_ERROR_DEVICE_POLICY_RESTRICTION;
+       case BLUETOOTH_ERROR_NO_DATA:
+               return BT_ERROR_NO_DATA;
        case BLUETOOTH_ERROR_PARING_FAILED:
        case BLUETOOTH_ERROR_MAX_CONNECTION:
        case BLUETOOTH_ERROR_REGISTRATION_FAILED: