mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
				synced 2025-11-03 20:27:45 +00:00 
			
		
		
		
	Added support for state in telemetry.
This commit is contained in:
		@@ -16,7 +16,7 @@ namespace OpenWifi {
 | 
			
		||||
	void RESTAPI_command::DoGet() {
 | 
			
		||||
		auto CommandUUID = GetBinding(RESTAPI::Protocol::COMMANDUUID, "");
 | 
			
		||||
		GWObjects::CommandDetails Command;
 | 
			
		||||
		if (Storage()->GetCommand(CommandUUID, Command)) {
 | 
			
		||||
		if (StorageService()->GetCommand(CommandUUID, Command)) {
 | 
			
		||||
			Poco::JSON::Object RetObj;
 | 
			
		||||
			Command.to_json(RetObj);
 | 
			
		||||
			return ReturnObject(RetObj);
 | 
			
		||||
@@ -32,11 +32,11 @@ namespace OpenWifi {
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		GWObjects::CommandDetails	C;
 | 
			
		||||
		if(!Storage()->GetCommand(UUID, C)) {
 | 
			
		||||
		if(!StorageService()->GetCommand(UUID, C)) {
 | 
			
		||||
			return NotFound();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (Storage()->DeleteCommand(UUID)) {
 | 
			
		||||
		if (StorageService()->DeleteCommand(UUID)) {
 | 
			
		||||
			return OK();
 | 
			
		||||
		}
 | 
			
		||||
		return InternalError();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user