Search found 25 matches
- Sat Aug 26, 2017 12:39 am
- Forum: Report Bugs
- Topic: Unable to use esp_ble_gatts_get_attr_value after BLE long write
- Replies: 0
- Views: 3861
Unable to use esp_ble_gatts_get_attr_value after BLE long write
Maybe I get some attention when I post this here. Its more than 1.5 months ago since I reported this with the location where the problem is and nothing has happened to address this. Issue link: https://github.com/espressif/esp-idf/issues/771 My client performs a long write. When I try to read the at...
- Sun Aug 13, 2017 12:41 am
- Forum: ESP-IDF
- Topic: BLE: Contents of correct response for ESP_GATTS_WRITE_EVT
- Replies: 3
- Views: 10587
Re: BLE: Contents of correct response for ESP_GATTS_WRITE_EVT
You need to create a mapping between your characteristic and the handle in the ESP_GATTS_CREAT_ATTR_TAB_EVT event.
The indices in param->add_attr_tab.handles[index] are the same that you passed with esp_ble_gatts_create_attr_tab.
The indices in param->add_attr_tab.handles[index] are the same that you passed with esp_ble_gatts_create_attr_tab.
- Tue Jul 18, 2017 12:09 pm
- Forum: ESP-IDF
- Topic: How to increase MTU size on GATT - Server
- Replies: 21
- Views: 49037
Re: How to increase MTU size on GATT - Server
Increasing the MTU size on android requires version 21+ (Lollipop - 5.0)
The related API is https://developer.android.com/reference ... stMtu(int)
The related API is https://developer.android.com/reference ... stMtu(int)
- Tue Jul 18, 2017 1:30 am
- Forum: General Discussion
- Topic: Where are base64_encode/decode functions defined?
- Replies: 3
- Views: 12374
Re: Where are base64_encode/decode functions defined?
I use https://github.com/espressif/esp-idf/bl ... s/base64.h which has its implementation in https://github.com/espressif/esp-idf/bl ... y/base64.c
Works for me so far.
Works for me so far.
- Mon Jul 17, 2017 2:19 pm
- Forum: ESP-IDF
- Topic: How to increase MTU size on GATT - Server
- Replies: 21
- Views: 49037
Re: How to increase MTU size on GATT - Server
This API might be a clue ... http://esp-idf.readthedocs.io/en/latest/api-reference/bluetooth/esp_gattc.html#_CPPv224esp_ble_gattc_config_mtu13esp_gatt_if_t8uint16_t8uint16_t This should have an effect if the the client request an MTU size increase. All files that contain gattc instead of gatts are ...
- Mon Jul 17, 2017 1:45 pm
- Forum: ESP-IDF
- Topic: How to increase MTU size on GATT - Server
- Replies: 21
- Views: 49037
Re: How to increase MTU size on GATT - Server
I don't know if there's a way to force this from the server. My research related to android clients tells me so far that the MTU size is hard coded at least for older devices and can not be changed. What I use so far is the auto response with the service table. The ESP-IDF SDK is in this mode able t...
- Mon Jul 17, 2017 1:33 pm
- Forum: ESP-IDF
- Topic: How to increase MTU size on GATT - Server
- Replies: 21
- Views: 49037
Re: How to increase MTU size on GATT - Server
The constant you mentioned is used by the gatt client not the server.
Theoretically the client can request an increase of the MTU size, but I never tested it.
Theoretically the client can request an increase of the MTU size, but I never tested it.
- Sun Jul 16, 2017 2:35 pm
- Forum: General Discussion
- Topic: How to (re)compile components
- Replies: 5
- Views: 9303
- Sun Jul 16, 2017 2:33 pm
- Forum: Sample Code
- Topic: Create reusable components
- Replies: 0
- Views: 4286
Create reusable components
There as been a question about this topic in https://esp32.com/viewtopic.php?f=2&t=2436 My approach of how to develop and test reusable components independently of an application might of interest for other developers. I created simple example as demonstration located at https://github.com/mh-dev/es...
- Sat Jul 15, 2017 1:21 pm
- Forum: General Discussion
- Topic: How to (re)compile components
- Replies: 5
- Views: 9303
Re: How to (re)compile components
I have a project that contains all my own components structured in the following way. Project dir components component1 component2 unity copy of https://github.com/espressif/esp-idf/tree/master/tools/unit-test-app/components/unity main copy of https://github.com/espressif/esp-idf/tree/master/tools/u...