mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-06 05:37:54 +00:00
Adding proper status report when a device is not connected.
This commit is contained in:
@@ -197,8 +197,12 @@ void RESTAPI_device_commandHandler::GetStatus() {
|
||||
Poco::JSON::Object RetObject;
|
||||
State.to_json(RetObject);
|
||||
return ReturnObject(RetObject);
|
||||
} else {
|
||||
Poco::JSON::Object RetObject;
|
||||
RetObject.set("serialNumber", SerialNumber_);
|
||||
RetObject.set("connected", false);
|
||||
return ReturnObject(RetObject);
|
||||
}
|
||||
NotFound();
|
||||
}
|
||||
|
||||
void RESTAPI_device_commandHandler::Configure() {
|
||||
|
||||
Reference in New Issue
Block a user