h2zero / NimBLE-Arduino

A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
https://h2zero.github.io/NimBLE-Arduino/
Apache License 2.0
670 stars 138 forks source link

ESP32-S3 BLE Server Vs. Detection on PC Bluetooth Dongle #627

Closed wamk9 closed 4 weeks ago

wamk9 commented 6 months ago

Hi!

I need to create a project with bluetooth connection on my PC, but ANY BT library I use show only on my smartphone the connection.

My question:

Is this a caracteristic of ESP32-S3 BLE? Or I need do a extra config to work on my PC in NimBLE?

My dongle is a Baseus BT 5.0, like this: https://pt.aliexpress.com/item/1005003601253541.html

Another thing, i try to use all examples but... Well, don't works on this situation...

h2zero commented 6 months ago

I'm not sure what you mean, does the PC not see the advertisements from the ESP32?

wamk9 commented 6 months ago

I'm not sure what you mean, does the PC not see the advertisements from the ESP32?

Yes, now i have success with this, but after 2 seconds or less my device disconnect on PC. See code on link:

https://pastebin.com/6ejYL5Ne

I try remove notify to see if i have any diference reaction, but nothing happens...

wamk9 commented 5 months ago

Any suggestion @h2zero?

h2zero commented 5 months ago

I would need to see the logs from the esp32 at debug level to provide much insight with this.

dimityrivanov commented 5 months ago

@h2zero how can I enable logs ?

h2zero commented 4 weeks ago

I believe this to be related to bluetooth classic, not this repo. please reopen if still having this issue.