mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-18 01:03:14 +00:00
First commit of MeshAgent for MeshCentral
This commit is contained in:
15
Debug/ModuleTest.js
Normal file
15
Debug/ModuleTest.js
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user