MCPcopy Create free account
hub / github.com/cifertech/nRFBox / toggleAdvertising

Function toggleAdvertising

VScode Platformio/src/spoofer.cpp:331–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void toggleAdvertising() {
332 if (isAdvertising) {
333 pAdvertising->stop();
334 Serial.println("Advertising stopped.");
335 updateDisplay();
336 } else {
337 pAdvertising->start();
338 Serial.println("Advertising started.");
339 updateDisplay();
340 }
341 isAdvertising = !isAdvertising;
342}
343
344
345void spooferSetup(){

Callers

nothing calls this directly

Calls 1

updateDisplayFunction · 0.70

Tested by

no test coverage detected