MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / start

Method start

tests/modules/network/ble/client/whitelist.js:24–31  ·  view source on GitHub ↗
(whitelist=false)

Source from the content-addressed store, hash-verified

22 this.start();
23 }
24 start(whitelist=false) {
25 trace(`start scanning: ${whitelist}\n`);
26 if (whitelist) {
27 this.startScanning({ filterPolicy: GAP.ScanFilterPolicy.WHITELIST, duplicates: true });
28 } else {
29 this.startScanning({duplicates: true});
30 }
31 }
32 stop() {
33 trace("stop scanning\n");
34 this.stopScanning();

Callers 2

onReadyMethod · 0.95
onDiscoveredMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected