ESP32 128-bit UUID
Posted: Wed May 25, 2022 2:02 pm
Greetings of the day,
Present am working on Gatt Client Example from ESP-IDF V4.4.1, am trying to connect to server by using 128-bit Service UUID
am using below structure method given in example code to copy 16bytes into structure member
static esp_bt_uuid_t remote_filter_service_uuid= {
.len = ESP_UUID_LEN_128,
.uuid = {.uuid128 = {0xfb,0x34,0x9b,0x5f,0x80,0x00,0x00,0x80,0x00,0x10,0x00,0x00,0xe9,0xfe,0x00,0x00 },},
};
using "memcmp(remote_filter_service_uuid.uuid.uuid128, gatts_service_uuid128, ESP_UUID_LEN_128)" to copy all bytes
Is this the correct method to copy array of elements into structure variable ? and am unable to read "128-bit Service UUID"
1)Can I use memcpy function to copy all bytes or is there any other process to copy bytes into structure member ?
2) There are 2 methods provided in ESPRESSIF forum, can i go through using README.MD or Gatt Client Example ?
please provide me the solution as soon as possible, this could help me alot to come out of these issue.
Thanking you sir,
Suraj,N
Present am working on Gatt Client Example from ESP-IDF V4.4.1, am trying to connect to server by using 128-bit Service UUID
am using below structure method given in example code to copy 16bytes into structure member
static esp_bt_uuid_t remote_filter_service_uuid= {
.len = ESP_UUID_LEN_128,
.uuid = {.uuid128 = {0xfb,0x34,0x9b,0x5f,0x80,0x00,0x00,0x80,0x00,0x10,0x00,0x00,0xe9,0xfe,0x00,0x00 },},
};
using "memcmp(remote_filter_service_uuid.uuid.uuid128, gatts_service_uuid128, ESP_UUID_LEN_128)" to copy all bytes
Is this the correct method to copy array of elements into structure variable ? and am unable to read "128-bit Service UUID"
1)Can I use memcpy function to copy all bytes or is there any other process to copy bytes into structure member ?
2) There are 2 methods provided in ESPRESSIF forum, can i go through using README.MD or Gatt Client Example ?
please provide me the solution as soon as possible, this could help me alot to come out of these issue.
Thanking you sir,
Suraj,N