-
Notifications
You must be signed in to change notification settings - Fork 7.6k
BTClassic: discover() & connect() #8448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@PilnyTomas PTAL, thanks! |
Hi, I have slightly modified your code and added a few debug outputs and it is working. I'm using a second ESP32 with the example
|
21:15:37.686 -> DEBUG: got 1 results without requesting it is working like mine D: slave loop
After the first REQUEST, the slave sends a one-time response, after which the master dies (see "DEBUG" message above) with
I also get the message on the master, but only once 21:36:50.550 -> DEBUG: got 1 results 21:36:56.560 -> 0 |
Ok, the discover is failing on the first test:
[E][BluetoothSerial.cpp:1173] discover(): Failed if (timeoutMs(10000) < MIN_INQ_TIME(1280) || timeoutMs(10000) > MAX_INQ_TIME(61440) || strlen(_remote_name)(14) || _isRemoteAddressSet(1)){ |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Board
ESP32 Dev Module
Device Description
nothing
Hardware Configuration
only BT-connection
Version
2.0.10
IDE Name
Arduino IDE
Operating System
Win 10
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
115200
Description
in my loop(): I want to discover() available clients. after that, i want to connect() to them and after that i want to repeat this.
If I use the discover()-part only, it shows all available clients, works as expected....
If i use connect("DEVICE_NAME") only, it works perfectly. Also with multiple clients....
If I use both, the discover()-function works on the first pass, but after connect(DEVICE_NAME), the discover()-function is broken... (I don't get any "active" devices anymore) so I tried so many different approaches, but I didn't find a solution....
If I put the discover()-part in setup(), everything works fine, but i want to update the list of active clients, so i put this part in loop().
a connect() after discover() will stop discover()!?!
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
edit: for now, i have moved the discover part to setup() and every 30minutes the esp is restarted... it's not the best approach, but it works... conclusion: discover and connect do not work together
The text was updated successfully, but these errors were encountered: