...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
var NetworkConfigClass = require("@brightsign/networkconfiguration"); var wifi = new NetworkConfigClass("wlan0"); wifi.scan().then( // Call the Scan() method, which returns a promise. function(data){console.log(JSON.stringify(data));}); // The resolve/success case, which prints the scan results .catch( function(data){console.log{(JSON.stringify(data));}); // The reject/failure case, which prints the failure reason |
...