Search found 79 matches

by Lucas.Hutchinson
Mon Jul 24, 2017 8:15 pm
Forum: General Discussion
Topic: Documentation of memory debug feature?
Replies: 2
Views: 1839

Re: Documentation of memory debug feature?

Hi there,

I have found using this function quite useful in tracking down memory leaks.

Code: Select all

esp_get_free_heap_size()
by Lucas.Hutchinson
Mon Jul 24, 2017 8:14 pm
Forum: ESP32 IDF
Topic: Changing Supervision timeout on BLE
Replies: 6
Views: 3696

Re: Changing Supervision timeout on BLE

This is part of espressif changing the bootloader to use LTO during compilation to save compiled code size.

More details and a solution can be found here:
https://github.com/espressif/esp-idf/issues/828

Alternately switch to using the release/v2.1 branch.
by Lucas.Hutchinson
Thu Jul 20, 2017 8:21 pm
Forum: ESP32 IDF
Topic: Changing Supervision timeout on BLE
Replies: 6
Views: 3696

Re: Changing Supervision timeout on BLE

Hi Frostyowned Hmm that is quite strange. I have placed the function in essentially the same location and it works well for me. Not sure why this would be erroring, unless for some reason the connection event was not successful? FYI you can just pass param->connect.remote_bda to the function without...
by Lucas.Hutchinson
Wed Jul 19, 2017 9:04 pm
Forum: ESP32 IDF
Topic: Changing Supervision timeout on BLE
Replies: 6
Views: 3696

Re: Changing Supervision timeout on BLE

hi @frostyowned A function like the following should help you configure the timeout. This is configurable on the GATT Sever side only. void gatt_perihperal_update_connection_params(uint8_t* client_addr) { esp_ble_conn_update_params_t conn_params; memcpy(conn_params.bda, client_addr, BLE_MAC_ADDR_LEN...
by Lucas.Hutchinson
Tue Jul 18, 2017 3:08 am
Forum: ESP32 IDF
Topic: BLE multi-connection procedure
Replies: 10
Views: 13650

Re: BLE multi-connection procedure

A client connecting to multiple peripherals is available in the IDF at the moment. Currently I use multiple profiles registered using the function esp_ble_gattc_app_register . However you should be able to use only one profile and just refer to each device using it's own conn_id. AS far as i am awar...
by Lucas.Hutchinson
Tue Jul 18, 2017 3:03 am
Forum: ESP32 IDF
Topic: [Answered]: Release of memory passed by reference to ESP-IDF functions
Replies: 5
Views: 3192

Re: [Question]: Release of memory passed by reference to ESP-IDF functions

I would also be interested in this.
It would save a decent amount of statically allocated ram in my current application if this ram could be malloc'd then free'd.
Currently I have err'ed on the side of caution and statically allocated the required memory for each characteristic.
by Lucas.Hutchinson
Tue Jul 18, 2017 2:59 am
Forum: ESP32 IDF
Topic: How to increase MTU size on GATT - Server
Replies: 19
Views: 12894

Re: How to increase MTU size on GATT - Server

Hi All, As previously mentioned it is the gatt client that needs to request an MTU change. The gatt sever is unable to change the mtu size without a request from the gatt client. I have tested this with the esp32 and it works very well. In my case my gatt client always requests an MTU change of a pe...
by Lucas.Hutchinson
Sun Jul 16, 2017 9:40 pm
Forum: Report Bugs
Topic: BLE Central: Can't connect to peripheral while scanning.
Replies: 4
Views: 2918

Re: BLE Central: Can't connect to peripheral while scanning.

Just checking if anyone has any more idea about why this doesnt work properly?

@WiFive @ESP_Angus or anyone else from espressif, Is this a known issue?
by Lucas.Hutchinson
Mon Jul 10, 2017 4:04 am
Forum: Report Bugs
Topic: BLE Central: Can't connect to peripheral while scanning.
Replies: 4
Views: 2918

Re: BLE Central: Can't connect to peripheral while scanning.

Hi @Kolban, Thanks for your response, this is what i am doing currently. It does work, however it forces delays with interaction with the ESP32, which is not ideal. However sometimes it can take a while for the Bluetooth connection to connect successfully. In these cases the application has to wait ...
by Lucas.Hutchinson
Sun Jul 09, 2017 11:43 pm
Forum: Report Bugs
Topic: BLE Central: Can't connect to peripheral while scanning.
Replies: 4
Views: 2918

BLE Central: Can't connect to peripheral while scanning.

Hi All, In my application I am developing the ESP32 so that as a ble central it can connect to multiple peripherals. Ideally the app would be able to scan for devices and connect to them as the app discovers them, without stopping the scan. However I have come across an issue where the app wont conn...

Go to advanced search