I'm trying to build a code with the Client Example to connect to a Android App with custom UUID. I have managed to establish the connection, but can't find the Service. I didn't find anything about using 128 bit UUIDS.
My Problems are in this line
Code: Select all
if (p_data->search_res.srvc_id.uuid.len == ESP_UUID_LEN_128 && p_data->search_res.srvc_id.uuid.uuid.uuid16 == REMOTE_SERVICE_UUID)
I've defined the UUID like this
Code: Select all
#define REMOTE_SERVICE_UUID 0x71C1E128D92F4FA8A2B20F171DB3436C
#define REMOTE_NOTIFY_CHAR_UUID 0x503DD6059BCB4F6EB235270A57483026
Code: Select all
static esp_bt_uuid_t remote_filter_service_uuid = {
.len = ESP_UUID_LEN_128,
.uuid.uuid128 =
{
0x71, 0xC1, 0xE1, 0x28, 0xD9, 0x2F, 0x4F, 0xA8, 0xA2, 0xB2, 0x0F, 0x17, 0x1D, 0xB3, 0x43, 0x6C,
},
};
static esp_bt_uuid_t remote_filter_char_uuid = {
.len = ESP_UUID_LEN_128,
.uuid.uuid128=
{0x50, 0x3D, 0xD6, 0x05, 0x9B, 0xCB, 0x4F, 0x6E, 0xB2, 0x35, 0x27, 0x0A, 0x57, 0x48, 0x30, 0x26},
};