ESP BLE

ddddvv
Posts: 2
Joined: Mon Jul 23, 2018 4:41 pm

ESP BLE

Postby ddddvv » Mon Jul 23, 2018 4:54 pm

Hello,
1. i'm using the esp BLE libaray, and I would like to know if there is a way to program the ble physical layer of the esp32 by the sdk (e.g. : setting the desire frequency, or blocking some Frequencies of hopping)?

2. The BLERemoteCharacteristic.cpp uses header named "esp_gattc_api.h", and I want to edit some functions which are inside of that header, but I can't locate the cpp file of that header (esp_gattc_api.cpp). how can I edit those functions (e.g: esp_ble_gattc_write_char)?

Thank you in advace! :geek:

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP BLE

Postby chegewara » Tue Jul 24, 2018 5:25 pm


ddddvv
Posts: 2
Joined: Mon Jul 23, 2018 4:41 pm

Re: ESP BLE

Postby ddddvv » Wed Jul 25, 2018 4:51 pm

Hey, thank you for your comment!

I just realized I only have installed the "arduino-esp32" and not the "esp-idf" as in your link.
do I need to download the "esp-idf" also in order to access those files? what is the different between the repositories?
I'm alittle confused, how come it does compile and work while I use some cpp files which I cant find on my comp?

I'm new to the esp32, so thank you understanding!

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP BLE

Postby chegewara » Thu Jul 26, 2018 6:23 pm

It would be easier if you say what do you need to change in esp_ble_gattc_write_char.

According point 1, it is possible to set hopping channels in esp-idf but it is not implemented in arduino library. You can change this line on your computer:
https://github.com/nkolban/esp32-snippe ... ng.cpp#L57
wit those ORed values:
https://github.com/espressif/esp-idf/bl ... #L223-L225

Who is online

Users browsing this forum: Majestic-12 [Bot] and 104 guests