File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -578,6 +578,12 @@ void BLEDevice::startAdvertising() {
578
578
log_v (" << startAdvertising" );
579
579
} // startAdvertising
580
580
581
+ void BLEDevice::stopAdvertising () {
582
+ log_v (" >> stopAdvertising" );
583
+ getAdvertising ()->stop ();
584
+ log_v (" << stopAdvertising" );
585
+ } // stopAdvertising
586
+
581
587
/* multi connect support */
582
588
/* requires a little more work */
583
589
std::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 {
50
50
/* move advertising to BLEDevice for saving ram and flash in beacons */
51
51
static BLEAdvertising* getAdvertising ();
52
52
static void startAdvertising ();
53
+ static void stopAdvertising ();
53
54
static uint16_t m_appId;
54
55
/* multi connect */
55
56
static std::map<uint16_t , conn_status_t > getPeerDevices (bool client);
You can’t perform that action at this time.
0 commit comments