mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
component/bt : change gatt client callback param
1. change the array to point to decrease the memory occupy 2. change the sendindconfirm position 3. fix union lost
This commit is contained in:
@@ -106,7 +106,7 @@ typedef union {
|
||||
esp_gatt_srvc_id_t srvc_id;
|
||||
esp_gatt_id_t char_id;
|
||||
esp_gatt_id_t descr_id;
|
||||
uint8_t value[ESP_GATT_MAX_ATTR_LEN];
|
||||
uint8_t *value;
|
||||
uint16_t value_type;
|
||||
uint16_t value_len;
|
||||
} read; /* ESP_GATTC_READ_CHAR_EVT */
|
||||
@@ -134,7 +134,7 @@ typedef union {
|
||||
esp_gatt_id_t char_id;
|
||||
esp_gatt_id_t descr_id;
|
||||
uint16_t value_len;
|
||||
UINT8 value[ESP_GATT_MAX_ATTR_LEN];
|
||||
uint8_t *value;
|
||||
bool is_notify;
|
||||
} notify;
|
||||
|
||||
|
Reference in New Issue
Block a user