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

Method mode

modules/network/wifi/sim/wifi.js:88–92  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

86 this.#onNotify = value ?? function () { };
87 }
88 static set mode(value) {
89 if ((WiFi.Mode.off !== value) && (WiFi.Mode.station !== value) && (WiFi.Mode.accessPoint !== value) && ((WiFi.Mode.station | WiFi.Mode.accessPoint) !== value))
90 throw new Error("invalid wi-fi mode");
91 mode = value;
92 }
93 static get mode() { return mode; }
94 static scan(dictionary, callback) {
95 if (!mode)

Callers 1

scanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected