Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Variables
- var network = "WLAN_B3"; //CHANGE IT.
- //WifiScan
- device.network.on("wifiScan", function (signal)
- {
- var results = signal.scanResults;
- for(var i=0;i<results.size();i++){
- var wifi = results.get(i);
- if(wifi.SSID == network) {
- device.notifications.createNotification(wifi.level).show();
- if(wifi.level > -40) { //CHANGE THE LEVEL [-90 ,.., -30] dBm approximately.
- //Code for disable the alarm.
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement