-
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 of
wolk_tracker_features
. (#72)
* Wolk with external data provider * Expanded data handler api; Fixed building tests * Split handling of external device data and statuses * Don't run tests when building * Don't build and install gateway app * Fixed routing of device messages * Don't build and install app if used as subproject * Newest WolkSDK-Cpp - fixing sensors & alarm messages with multiple references (#49) * Change ExternalDataService to `make_shared` * Fix setupGatewayDataService to not pass ref to invalid pointer * Link the data service to subscribe to topics for config/actuation for gateway * Added the `FileListener` class to `FileDownloadService`. (#52) * Introduced FileListener * Pass listener to service, and fix passed path * Enabled Firmware Update * FileListener control of files * Add possiblity to add file to repo * Removed fileCreationLambda * Custom protocol and persistence (#53) * Custom protocols; Publish external message from custom protocol as is * FileSystem persistence * sdk; Fixes includes and formatting * Improved use of filesystem persistence; Circular persistence * Fixed publishing * Persistence mechanism uses ordering * Check messages retreived from buffer * code review fixes * Use recursive mutex for persistence (#56) * Report update success & Store version in folder (#57) * Report successful update on return true * Save version file in separate folder * Bugfix/blocking manager start (#59) * New WolkSDK-Cpp with non-blocking log manager start * Point to master * Fix/json protocol sensor topics (#60) * New SDK with fixed topics * Fixed sensor topics * Point to master commit of WolkSDK * Fixed readings path when checking file size; (#61) Fixed building tests * Disable gw update for custom protocol (#62) * Updated WolkSDK-Cpp submodule (#63) * Bugfix/wolk destructor hanging (#64) * New WolkSDK with Buffer::stop() method * Call the stop method on buffer, and check if thread is joinable first * New WolkSDK with AWS args based on Debug/Release (#65) * Improvement/WolkSDK-Cpp with new setters and getters. (#66) * Updated WolkSDK-Cpp submodule * New WolkSDK with more getters * Updated WolkSDK (reformat) * Point to master WolkSDK-Cpp Co-authored-by: djesic <danilo.jesic@wolkabout.com> * Improvement - Use FileSystem as source of truth about files (#67) * Started implementing the FSFileRepository * Completely remove the .hash-file * Implemented the full unit tests for FSFileRepository * Use FSFileRepository and not SQLiteFileRepository * Applied the request code review changes * Change to newest WolkSDK-Cpp (optional description field in payloads) * Wolk with external data provider * Expanded data handler api; Fixed building tests * Split handling of external device data and statuses * Don't run tests when building * Don't build and install gateway app * Fixed routing of device messages * Don't build and install app if used as subproject * Change ExternalDataService to `make_shared` * Fix setupGatewayDataService to not pass ref to invalid pointer * Link the data service to subscribe to topics for config/actuation for gateway * Added the `FileListener` class to `FileDownloadService`. (#52) * Introduced FileListener * Pass listener to service, and fix passed path * Enabled Firmware Update * FileListener control of files * Add possiblity to add file to repo * Removed fileCreationLambda * Custom protocol and persistence (#53) * Custom protocols; Publish external message from custom protocol as is * FileSystem persistence * sdk; Fixes includes and formatting * Improved use of filesystem persistence; Circular persistence * Fixed publishing * Persistence mechanism uses ordering * Check messages retreived from buffer * code review fixes * Use recursive mutex for persistence (#56) * Report update success & Store version in folder (#57) * Report successful update on return true * Save version file in separate folder * Fix/json protocol sensor topics (#60) * New SDK with fixed topics * Fixed sensor topics * Point to master commit of WolkSDK * Fixed readings path when checking file size; (#61) Fixed building tests * Disable gw update for custom protocol (#62) * Improvement - Use FileSystem as source of truth about files (#67) * Started implementing the FSFileRepository * Completely remove the .hash-file * Implemented the full unit tests for FSFileRepository * Use FSFileRepository and not SQLiteFileRepository * Applied the request code review changes * Fixed enough after rebase to get it working * Changed call of `addSensorReading` in tests to reflect new protocol changes * Initialize the FSFileRepository later * Fixed the initialization sequence for FSFileRepository * Cleaned-up duplicates and made `build()` and `setupWith(External/Internal)Data()` method cleaner * Create the device repositories only in internal * Bump the version to v4.3.0 * Added the platform connection status getter and callback * Update to newest WolkSDK-Cpp * Added `POCO_INSTALL_DIR` value and reformated CMakeLists.txt * Added the include dir too * Fix files test * Added licence headers; Formatting Co-authored-by: mzlicic <milan.zlicic@wolkabout.com> Co-authored-by: nvuletic <56640944+nvuletic@users.noreply.github.com> Co-authored-by: Danilo Ješić <34022788+djesic@users.noreply.github.com> Co-authored-by: djesic <danilo.jesic@wolkabout.com>
- Loading branch information
1 parent
d6f0fe6
commit 91474ca
Showing
98 changed files
with
3,050 additions
and
720 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 WolkSDK-Cpp
updated
3 files
+0 −8 | core/log_uploader/AwsLogUploader.cpp | |
+18 −14 | core/utilities/LogManager.cpp | |
+7 −2 | dependencies/CMakeLists.txt |
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
wolkgateway (4.2.9) stable; urgency=medium | ||
wolkgateway (4.3.0) stable; urgency=medium | ||
|
||
* Fixed the gateway update to allow us to pass if it has already been updated. | ||
* Disabled the gateway update fow now, as it doesn't really have a purpose right now. | ||
* Imported newest WolkSDK-Cpp that allows for optional `description` properties in JsonDto messages. | ||
* Created WolkDefault and WolkExternal that provide different interfaces for custom subdevice data providing. | ||
* Introduced the FSFileRepository to provide info about FileManagement files from the File System. | ||
* Disabled the Gateway Update message sending and mechanisms as they have been found unnecessary. | ||
* Imported the newest WolkSDK-Cpp that introduces various fixes and improvements. | ||
* Moved the version file when firmware installing to a different location. Also, finishing the install method with `true` now reports success. | ||
* Introduced the custom data and device status protocols, that allow us to define custom MQTT topics/payloads for those messages. | ||
* Added the FileListener interface for FileManagementService to allow input into the File Management process and allow for hooks. | ||
* Made optimizations for the application to be built as a submodule. | ||
|
||
-- Wolkabout ELab <elab@wolkabout.com> Tue, 11 May 2021 00:00:00 +0100 | ||
-- Wolkabout ELab <elab@wolkabout.com> Fri, 14 May 2021 00:00: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
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,72 @@ | ||
/* | ||
* Copyright 2021 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 FILELISTENER_H | ||
#define FILELISTENER_H | ||
|
||
#include <functional> | ||
#include <string> | ||
|
||
namespace wolkabout | ||
{ | ||
/** | ||
* This class presents an interface for an object that is interested in ongoing of the `FileDownloadService`, and it | ||
* will be notified of new files that are downloaded/deleted. | ||
*/ | ||
class FileListener | ||
{ | ||
public: | ||
/** | ||
* The default overridable destructor. | ||
*/ | ||
virtual ~FileListener() = default; | ||
|
||
/** | ||
* This is the method that is invoked by the service to notify of the directory that is being used to store files, | ||
* and in which they are all accessible. | ||
* | ||
* @param absolutePath The absolute path of the directory where files are stored. | ||
*/ | ||
virtual void receiveDirectory(const std::string& absolutePath) = 0; | ||
|
||
/** | ||
* This is the method that is invoked by the service to notify that a new file has been made available to download, | ||
* and we can say whether or not we want to download the file. | ||
* | ||
* @param fileName The name of the newly initiated file. | ||
* @return Whether or not we want to download the file. | ||
*/ | ||
virtual bool chooseToDownload(const std::string& fileName) = 0; | ||
|
||
/** | ||
* This is the method that is invoked by the service to notify that a new file has been downloaded and is placed in | ||
* the file system. From this point on, the service can manipulate the file further, and cause action based on that. | ||
* | ||
* @param fileName The name of the newly downloaded file. | ||
*/ | ||
virtual void onNewFile(const std::string& fileName) = 0; | ||
|
||
/** | ||
* This is the method that is invoked by the service to notify that a file has been deleted or purged with all the | ||
* other ones off the file system. From this point on, the service can no longer count on the file existing. | ||
* | ||
* @param fileName The name of the removed file. | ||
*/ | ||
virtual void onRemovedFile(const std::string& fileName) = 0; | ||
}; | ||
} // namespace wolkabout | ||
|
||
#endif // FILELISTENER_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
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
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
Oops, something went wrong.