Search found 7 matches

by doduong
Sat Sep 23, 2017 6:59 am
Forum: ESP-IDF
Topic: Write data to characteristic in Service Table
Replies: 2
Views: 4615

Re: Write data to characteristic in Service Table

Someone can help me ?
by doduong
Fri Sep 22, 2017 7:26 am
Forum: ESP-IDF
Topic: Write data to characteristic in Service Table
Replies: 2
Views: 4615

Write data to characteristic in Service Table

Hi everyone, I'm working with ESP32 using sample project "gatt_server_service_table". I have a service with 4 characteristic. Now, I want to write data to characteristic. I use this function in event : ESP_GATTS_READ_EVT esp_ble_gatts_get_attr_value(uint16_t attr_handle, uint16_t *length, const uint...
by doduong
Wed Sep 20, 2017 8:41 am
Forum: ESP-IDF
Topic: Write a string to characteristic
Replies: 3
Views: 9151

Re: Write a string to characteristic

The handle of the characteristic is stored in the attribute handle table returned after ESP_GATTS_CREAT_ATTR_TAB_EVT: heart_rate_handle_table[CHARACTERISTIC_ENUM_VALUE] will return the handle for CHARACTERISTIC_ENUM_VALUE. Hi halfro, Thanks for your response.But I can't get handle. I want to write ...
by doduong
Tue Sep 19, 2017 9:00 am
Forum: ESP-IDF
Topic: Write a string to characteristic
Replies: 3
Views: 9151

Write a string to characteristic

Hi everyone, I'm working with ESP32 using sample project "gatt_server_service_table". I have a service with 4 characteristic. Now, I want to write a string to characteristic. This is my code in event :ESP_GATTS_READ_EVT ESP_LOGI(GATTS_TAG, "GATT_READ_EVT, conn_id %d, trans_id %d, handle %d\n", param...
by doduong
Fri Sep 01, 2017 3:20 am
Forum: ESP-IDF
Topic: Connect Wifi via Bluetooth Low Energy
Replies: 3
Views: 6051

Re: Connect Wifi via Bluetooth Low Energy

Howdy, What kind of help do you need? Loosely, think of a characteristic in BLE as a variable that contains byte data. The "name" of the variable is the characteristic UUID (the 128 bits of data of the form 1322b5aa-d1b3-450c-addc-c8f4c80dbb3c). The BLE server maintains that data and the BLE client...
by doduong
Thu Aug 31, 2017 7:02 am
Forum: ESP-IDF
Topic: Connect Wifi via Bluetooth Low Energy
Replies: 3
Views: 6051

Re: Connect Wifi via Bluetooth Low Energy

Howdy, What kind of help do you need? Loosely, think of a characteristic in BLE as a variable that contains byte data. The "name" of the variable is the characteristic UUID (the 128 bits of data of the form 1322b5aa-d1b3-450c-addc-c8f4c80dbb3c). The BLE server maintains that data and the BLE client...
by doduong
Wed Aug 30, 2017 8:28 am
Forum: ESP-IDF
Topic: Connect Wifi via Bluetooth Low Energy
Replies: 3
Views: 6051

Connect Wifi via Bluetooth Low Energy

Hi everyone, I have started a project use wifi and ble. My esp32 will scan and send list of Access points to my smartphone via BLE. I will choose AP in smartphone then esp32 will conect with that AP. I can get AP list form Wifi but I don't know how to write AP list to Characteristic in BLE. Someone ...