-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Fix BLEAdvertising::stop() #5116
Comments
That is not a mistype. The colons there indicate that there are two options for that function name, one in the local namespace, and one at the top level namespace. :: indicates to use the function at the top level namespace. |
Sorry even, my solution wasnt good, I reacted faster than I tested it properly. |
Its weird, because i never saw the problem to stop advertising. You can always call this in you code, without using library:
|
Thanks for the help, it wasnt the situation in my case. |
I believe you have some old library: Oh yes, i see it in v1.0.4, but fixed at some point. |
Yep, it was the issue. |
Hardware:
Board: ESP32 Dev Module
Core Installation version: 1.0.4
IDE name: Arduino IDE with Platform.io
Flash Frequency: 40Mhz
Upload Speed: 115200
Computer OS: Windows 10
Description:
Even after this fix: #3034
It still dosnt stop. I found out a misstype caused the issue.
At BLEAdvertising.cpp line 248 :
esp_err_t errRc = ::esp_ble_gap_stop_advertising();
Remove the two semicolons, and it will work afterwards.
The text was updated successfully, but these errors were encountered: