1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-16 16:23:25 +00:00
Files
MeshAgent/Debug/ModuleTest.js
2017-10-12 14:28:03 -07:00

16 lines
350 B
JavaScript

var WiFiScanner = require('WiFiScanner');
var scanner = new WiFiScanner();
scanner.on('accessPoint', function (ap) { console.log("[" + ap.bssid + "] (" + ap.lq + ") " + ap.ssid); });
if (scanner.hasWireless())
{
console.log("This Computer has wireless");
scanner.Scan();
}
else
{
console.log("This Computer DOES NOT have wireless");
}