mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-02 11:47:47 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -209,6 +209,9 @@ namespace OpenWifi {
|
||||
if (AP_WS_Server()->GetStatistics(SerialNumber_, Stats) && !Stats.empty()) {
|
||||
return ReturnRawJSON(Stats);
|
||||
}
|
||||
if(AP_WS_Server()->Connected(SerialNumberInt_)) {
|
||||
return BadRequest(RESTAPI::Errors::NoDeviceStatisticsYet);
|
||||
}
|
||||
return BadRequest(RESTAPI::Errors::DeviceNotConnected);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user