Fix null error; Fix promise

This commit is contained in:
2024-03-27 22:16:56 +01:00
parent 4e8c3efe6f
commit debd06f258
4 changed files with 19 additions and 7 deletions

View File

@ -26,7 +26,8 @@ function parseOutput(str, callback) {
'ssid' : lines[i].substring(0, 32).trim(),
'mac' : '', // There is no more mac on a mac
'channel': parseInt(elements[1].trim(), 10),
'rssi' : parseInt(elements[0].trim(), 10)
'rssi' : parseInt(elements[0].trim(), 10),
'encrypted': false,
});
}
}