Search found 44 matches

by irahul
Tue Sep 17, 2024 12:36 pm
Forum: ESP-IDF
Topic: Multiple advertisements out of memory (BLE_ERR_MEM_CAPACITY)
Replies: 6
Views: 471

Re: Multiple advertisements out of memory (BLE_ERR_MEM_CAPACITY)

Can you share your sample application or console log to narrow down which function is returning this error. Also, can you share your complete sdkconfig ?
by irahul
Mon Aug 19, 2024 9:52 am
Forum: ESP-IDF
Topic: Reading Advertisement Service Data
Replies: 6
Views: 1229

Re: Reading Advertisement Service Data

Hi ,

I just saw in the log shared has Data len as 245 . Is this correct field being printed ? Legacy adv packets are of maximum size 31.
by irahul
Mon Aug 19, 2024 9:49 am
Forum: ESP-IDF
Topic: Reading Advertisement Service Data
Replies: 6
Views: 1229

Re: Reading Advertisement Service Data

Hello c3pnr-iot , HW Platform : ESP32 Build Env : Linux / ESP IDF 4.4 BLE Stack : NimBLE 1.3.0 Please note v4.4 is now EOL. I tested on 5.x also, but they give the same result. If you are able to reproduce the issue using blecent OR by making any modification, please do share your testing code too w...
by irahul
Fri Aug 16, 2024 8:28 am
Forum: ESP-IDF
Topic: Reading Advertisement Service Data
Replies: 6
Views: 1229

Re: Reading Advertisement Service Data

Hello @c3pnr-iot, I tried running the example blecent with some debug prints for this. I can see below prints that indicate the value of data recieved. event->disc.length_data: 26 rssi -27 2 1 6 3 3 11 18 f 9 6e 69 6d 62 6c 65 2d 62 6c 65 70 72 70 68 2 a 3 D (2680) NimBLE: flags=0x06 D (2680) NimBLE...
by irahul
Fri Jul 19, 2024 4:01 pm
Forum: ESP-IDF
Topic: Bluetooth NimBLE security: Allow connection only after pressing button
Replies: 4
Views: 1507

Re: Bluetooth NimBLE security: Allow connection only after pressing button

The devices you want to allow to connect, you can add to whitelist . Once whitelist is generated, you can apply the setting to allow connection from filter list . This way, only connections from address which are present in the whitelist would be accepted and rest would be dropped.
by irahul
Thu Jul 18, 2024 5:07 am
Forum: ESP-IDF
Topic: Bluetooth NimBLE security: Allow connection only after pressing button
Replies: 4
Views: 1507

Re: Bluetooth NimBLE security: Allow connection only after pressing button

> I was thinking of a method where the device is only visible for 30 seconds when pressing a pairing button

You can opt for limited discovery , where advertising is done only for limited period of time. After that advertising stops, so remote devices cannot find your device or initiate connection.
by irahul
Fri Jun 07, 2024 11:53 am
Forum: ESP-IDF
Topic: Nimble controller stack usage in ESP-IDF
Replies: 3
Views: 593

Re: Nimble controller stack usage in ESP-IDF

ESP chipsets have their own controller. So for Nimble ( or bluedroid ) only the host part of upstream mynewt-nimble code is used. The nimble controller part is not enabled / compiled in ESP-IDF .
by irahul
Fri Jun 07, 2024 11:50 am
Forum: ESP-IDF
Topic: NimBLE Bluetooth SPP Client Example Problem
Replies: 3
Views: 913

Re: NimBLE Bluetooth SPP Client Example Problem

Files like examples/bluetooth/nimble/common/nimble_central_utils/misc.c and examples/bluetooth/nimble/common/nimble_central_utils/peer.c are also needed. Infact all files of the nimble_central_utils folder need to compiled. Guess you are missing them.
by irahul
Wed Feb 28, 2024 2:38 pm
Forum: ESP-IDF
Topic: Please help learn the NimBLE stack
Replies: 9
Views: 18047

Re: Please help learn the NimBLE stack

Yes .. the example was recently updated to support both stacks .
by irahul
Mon Feb 26, 2024 4:26 am
Forum: ESP-IDF
Topic: Please help learn the NimBLE stack
Replies: 9
Views: 18047

Re: Please help learn the NimBLE stack

Hi devlat, there is example for hid under examples/bluetooth/esp_hid_device and examples/bluetooth/esp_host. This is targetted for both bluedroid and nimble. Does this not help your cause ?