NORA-W2 series - Hardware integration manual
UBX-22005177 - R01
Appendix
Page 54 of 61
C1
–
Public
uint32 channel = 2;
int32 rssi = 3;
bytes bssid = 4;
WifiAuthMode auth = 5;
}
message RespScanResult {
repeated WiFiScanResult entries = 1;
}
message WiFiScanPayload {
WiFiScanMsgType msg = 1;
Status status = 2;
oneof payload {
CmdScanStart cmd_scan_start = 10;
RespScanStart resp_scan_start = 11;
CmdScanStatus cmd_scan_status = 12;
RespScanStatus resp_scan_status = 13;
CmdScanResult cmd_scan_result = 14;
RespScanResult resp_scan_result = 15;
}
}
1.
CmdScanStart
WiFiScanPayload {
WiFiScanMsgType msg = TypeCmdScanStart,
CmdScanStart cmd_scan_start = { //payload
blocking = true,
passive = false,
group_channels = 0,
period_ms =120
}
}
Example (Java):
CmdScanStart configRequest = CmdScanStart.newBuilder()
.setBlocking(true)
.setPassive(false)
.setGroupChannels(0)
.setPeriodMs(120)
.build();
WiFiScanMsgType msgType = WiFiScanMsgType.TypeCmdScanStart;
WiFiScanPayload payload = WiFiScanPayload.newBuilder()
.setMsg(msgType)
.setCmdScanStart(configRequest)
.build();
return payload.toByteArray();
2.
RespScanStart
WiFiScanPayload {
WiFiScanMsgType msg = TypeRespScanStart,
Status status = <status_of_command>,
RespScanStart resp_scan_start = {} //payload
}
3.
CmdScanStatus
WiFiScanPayload {
WiFiScanMsgType msg = TypeCmdScanStatus,
CmdScanStatus cmd_scan_status = {} //payload
}