Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleExample
linenumberstrue
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

...