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

Method onReady

tests/modules/network/ble/client/whitelist.js:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17class Scanner extends BLEClient {
18 onReady() {
19 GAPWhitelist.clear();
20 GAPWhitelist.add("00:00:00:00:00");
21 this.state = LOOKING;
22 this.start();
23 }
24 start(whitelist=false) {
25 trace(`start scanning: ${whitelist}\n`);
26 if (whitelist) {

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
addMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected