mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-06 07:49:58 +00:00
components/bt: Make modifications to the support of GAP appearance/icon
characateristic 1. In addition to mentioning in the documentation, use the standard appearance values already present and return appropriate error in case an incorrect value is passed 2. Add ESP_BLE_APPEARANCE* macros corresponding to BTM_BLE_APPEARANCE* and use them from the API instead 3. Add the missing appearance parameter values from https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.gap.appearance.xml 4. Fix some minor typos Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
This commit is contained in:
@@ -206,7 +206,7 @@ typedef UINT8 BLE_SIGNATURE[BTM_BLE_AUTH_SIGN_LEN]; /* Device address */
|
||||
#endif
|
||||
|
||||
/* Appearance Values Reported with BTM_BLE_AD_TYPE_APPEARANCE */
|
||||
#define BTM_BLE_APPEARANCE_UKNOWN 0x0000
|
||||
#define BTM_BLE_APPEARANCE_UNKNOWN 0x0000
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_PHONE 0x0040
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_COMPUTER 0x0080
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_WATCH 0x00C0
|
||||
@@ -250,6 +250,15 @@ typedef UINT8 BLE_SIGNATURE[BTM_BLE_AUTH_SIGN_LEN]; /* Device address */
|
||||
#define BTM_BLE_APPEARANCE_PULSE_OXIMETER_FINGERTIP 0x0C41
|
||||
#define BTM_BLE_APPEARANCE_PULSE_OXIMETER_WRIST 0x0C42
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_WEIGHT 0x0C80
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_PERSONAL_MOBILITY_DEVICE 0x0CC0
|
||||
#define BTM_BLE_APPEARANCE_POWERED_WHEELCHAIR 0x0CC1
|
||||
#define BTM_BLE_APPEARANCE_MOBILITY_SCOOTER 0x0CC2
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_CONTINUOUS_GLUCOSE_MONITOR 0x0D00
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_INSULIN_PUMP 0x0D40
|
||||
#define BTM_BLE_APPEARANCE_INSULIN_PUMP_DURABLE_PUMP 0x0D41
|
||||
#define BTM_BLE_APPEARANCE_INSULIN_PUMP_PATCH_PUMP 0x0D44
|
||||
#define BTM_BLE_APPEARANCE_INSULIN_PEN 0x0D48
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_MEDICATION_DELIVERY 0x0D80
|
||||
#define BTM_BLE_APPEARANCE_GENERIC_OUTDOOR_SPORTS 0x1440
|
||||
#define BTM_BLE_APPEARANCE_OUTDOOR_SPORTS_LOCATION 0x1441
|
||||
#define BTM_BLE_APPEARANCE_OUTDOOR_SPORTS_LOCATION_AND_NAV 0x1442
|
||||
|
Reference in New Issue
Block a user