Skip to content
Snippets Groups Projects
Commit fcb6ccc0 authored by Didier Donsez's avatar Didier Donsez
Browse files

add case for wifi_ssid_scan

parent a1cf82a2
No related branches found
No related tags found
No related merge requests found
......@@ -30,11 +30,11 @@ function Decode(fPort, bytes) {
switch(fPort) {
case 5 :
return {
//type: "poc",
txpower: readUInt8(bytes, 10),
token: readUInt16BE(bytes, 8),
gweui: byteToHexString(bytes, 8)
// TODO add optional lattitude (float32), longitude (float32), altitude (uint16)
type: "poc",
txpower: readUInt8(bytes, 10),
token: readUInt16BE(bytes, 8),
gweui: byteToHexString(bytes, 8)
// TODO add optional lattitude (float32 or int24), longitude (float32 or int24), altitude (uint16), gps_quality ...
};
break;
case 161 :
......@@ -43,6 +43,12 @@ function Decode(fPort, bytes) {
txpower: readUInt8(bytes, 1)
};
break;
case 150:
return {
// TODO message for sending the list of <mac,rssi> of Wifi SSID networks
type: "wifi_ssid_scan",
txpower: readUInt8(bytes, 1)
};
default:
return {
type: "unknown"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment