-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from Wolkabout/feature/details-gateway-synchro…
…nization Addition of `device_synchronization` and `children_synchronization`.
- Loading branch information
Showing
29 changed files
with
1,633 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule WolkConnect-Cpp
updated
38 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
wolkgateway (4.4.0) stable; urgency=medium | ||
wolkgateway (5.0.0-prerelease) stable; urgency=medium | ||
|
||
* Completely removed `libpoco` as a dependency, and now rely on `sqlite` for SQLiteDeviceRepository. | ||
* Updated the WolkGateway to be ready for Wolkabout IoT Platform 22.GA - The Digital Twin Update | ||
* Fixed the CMakeLists.txt file for private header file finding to use project files in private | ||
|
||
-- Wolkabout ELab <elab@wolkabout.com> Wed, 22 Dec 2021 00:00:00 +0100 | ||
-- Wolkabout ELab <elab@wolkabout.com> Tue, 22 Feb 2022 14:22:00 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright 2022 Wolkabout Technology s.r.o. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef WOLKGATEWAY_DEVICEFILTER_H | ||
#define WOLKGATEWAY_DEVICEFILTER_H | ||
|
||
#include <string> | ||
|
||
namespace wolkabout | ||
{ | ||
namespace gateway | ||
{ | ||
/** | ||
* This interface defines an object that is capable of filtering through devices that actually exist and can have data | ||
* sent about them, and the ones that can not. | ||
*/ | ||
class DeviceFilter | ||
{ | ||
public: | ||
/** | ||
* Default virtual destructor. | ||
*/ | ||
virtual ~DeviceFilter() = default; | ||
|
||
/** | ||
* This is the filtration method that determines whether information about device exists, or not. | ||
* | ||
* @param deviceKey The key of the device. | ||
* @return Whether the device exists or not. | ||
*/ | ||
virtual bool deviceExists(const std::string& deviceKey) = 0; | ||
}; | ||
} // namespace gateway | ||
} // namespace wolkabout | ||
|
||
#endif // WOLKGATEWAY_DEVICEFILTER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright 2022 Wolkabout Technology s.r.o. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#include "gateway/repository/DeviceOwnership.h" | ||
|
||
namespace wolkabout | ||
{ | ||
namespace gateway | ||
{ | ||
std::string toString(DeviceOwnership deviceOwnership) | ||
{ | ||
switch (deviceOwnership) | ||
{ | ||
case DeviceOwnership::Platform: | ||
return "Platform"; | ||
case DeviceOwnership::Gateway: | ||
return "Gateway"; | ||
default: | ||
return {}; | ||
} | ||
} | ||
|
||
DeviceOwnership deviceOwnershipFromString(const std::string& value) | ||
{ | ||
if (value == "Platform") | ||
return DeviceOwnership::Platform; | ||
else if (value == "Gateway") | ||
return DeviceOwnership::Gateway; | ||
return DeviceOwnership::None; | ||
} | ||
} // namespace gateway | ||
} // namespace wolkabout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* Copyright 2022 Wolkabout Technology s.r.o. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef WOLKGATEWAY_DEVICEOWNERSHIP_H | ||
#define WOLKGATEWAY_DEVICEOWNERSHIP_H | ||
|
||
#include <string> | ||
|
||
namespace wolkabout | ||
{ | ||
namespace gateway | ||
{ | ||
// This enum value describes who the device belongs to. | ||
enum class DeviceOwnership | ||
{ | ||
None = -1, | ||
Platform, | ||
Gateway | ||
}; | ||
|
||
/** | ||
* This is a utility method that is used to convert the enumeration value into a string. | ||
* | ||
* @param deviceOwnership The DeviceOwnership value. | ||
* @return The string representation of the value. | ||
*/ | ||
std::string toString(DeviceOwnership deviceOwnership); | ||
|
||
/** | ||
* This is a utility method that is used to convert a string into the enumeration value. | ||
* | ||
* @param value A string value. | ||
* @return A DeviceOwnership value. If the value could not be parsed, will always be `DeviceOwnership::None`. | ||
*/ | ||
DeviceOwnership deviceOwnershipFromString(const std::string& value); | ||
} // namespace gateway | ||
} // namespace wolkabout | ||
|
||
#endif // WOLKGATEWAY_DEVICEOWNERSHIP_H |
Oops, something went wrong.