File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -578,6 +578,12 @@ void BLEDevice::startAdvertising() {
578578log_v (" << startAdvertising" );
579579} // startAdvertising
580580
581+ void BLEDevice::stopAdvertising () {
582+ log_v (" >> stopAdvertising" );
583+ getAdvertising ()->stop ();
584+ log_v (" << stopAdvertising" );
585+ } // stopAdvertising
586+
581587/* multi connect support */
582588/* requires a little more work */
583589std::map<uint16_t , conn_status_t > BLEDevice::getPeerDevices (bool _client) {
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class BLEDevice {
5050/* move advertising to BLEDevice for saving ram and flash in beacons */
5151static BLEAdvertising* getAdvertising ();
5252static void startAdvertising ();
53+ static void stopAdvertising ();
5354static uint16_t m_appId;
5455/* multi connect */
5556static std::map<uint16_t , conn_status_t > getPeerDevices (bool client);
You can’t perform that action at this time.
0 commit comments