Search found 25 matches

by Alen59
Tue Apr 24, 2018 4:35 pm
Forum: ESP-IDF
Topic: warning: "TAG" redefined, #define TAG "BT"
Replies: 1
Views: 3187

warning: "TAG" redefined, #define TAG "BT"

Hi, after I compile my code I am getting the following error , any ideas? /build/main\libmain.a(Bluetooth.o):(.rodata.REMOTE_SERVICE_UUID+0x0): multiple definition of `REMOTE_SERVICE_UUID' /build/main\libmain.a(main.o):(.rodata.REMOTE_SERVICE_UUID+0x0): first defined here /build/main\libmain.a(Bluet...
by Alen59
Tue Apr 24, 2018 2:40 pm
Forum: ESP-IDF
Topic: BLE UUID128
Replies: 6
Views: 11370

Re: BLE UUID128

this is where the problem was wrong ----------------> struct esp_bt_uuid_t remote_filter_service_uuid; correct----------------> esp_bt_uuid_t remote_filter_service_uuid; because: esp_bt_uuid_t is typedef typedef struct { #define ESP_UUID_LEN_16 2 #define ESP_UUID_LEN_32 4 #define ESP_UUID_LEN_128 16...
by Alen59
Fri Apr 20, 2018 4:39 pm
Forum: ESP-IDF
Topic: BLE UUID128
Replies: 6
Views: 11370

Re: BLE UUID128

here is the error message "error: 'remote_filter_char_uuid' has an incomplete type &count);" which is here under case ESP_GATTC_SEARCH_CMPL_EVT: status = esp_ble_gattc_get_char_by_uuid( gattc_if, p_data->search_cmpl.conn_id, gl_profile_tab[PROFILE_A_APP_ID].service_start_handle, gl_profile_tab[PROFI...
by Alen59
Thu Apr 19, 2018 8:01 pm
Forum: ESP-IDF
Topic: BLE UUID128
Replies: 6
Views: 11370

Re: BLE UUID128

I get this error "error: initializer element is not computable at load time" I can't copy an array value into another array with just = sign, uuid128 is an array with 16 member see below. /// UUID type typedef struct { #define ESP_UUID_LEN_16 2 #define ESP_UUID_LEN_32 4 #define ESP_UUID_LEN_128 16 u...
by Alen59
Mon Apr 16, 2018 9:27 pm
Forum: ESP-IDF
Topic: BLE UUID128
Replies: 6
Views: 11370

BLE UUID128

hi, I am using Bluetooth gatt_C demo and I want to change it to uuid128, this is what I am doing could you please advice? I get this error: missing braces around initializer [-Werror=missing-braces] ----------> .uuid = {.uuid128 = REMOTE_SERVICE_UUID,}, const uint8_t REMOTE_SERVICE_UUID[] = {0x00, 0...