mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-27 09:17:16 +02:00
Add BLEDevice::stopAdvertising() helper method to compliment startAdvertising(). (#3624)
This commit is contained in:
@ -578,6 +578,12 @@ void BLEDevice::startAdvertising() {
|
||||
log_v("<< startAdvertising");
|
||||
} // startAdvertising
|
||||
|
||||
void BLEDevice::stopAdvertising() {
|
||||
log_v(">> stopAdvertising");
|
||||
getAdvertising()->stop();
|
||||
log_v("<< stopAdvertising");
|
||||
} // stopAdvertising
|
||||
|
||||
/* multi connect support */
|
||||
/* requires a little more work */
|
||||
std::map<uint16_t, conn_status_t> BLEDevice::getPeerDevices(bool _client) {
|
||||
|
Reference in New Issue
Block a user