Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

FOGL-3168: python north plugin removed / c++ north plugin renamed #1733

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 2.6.0)

project(ocs_V2)
project(ocs)

set(CMAKE_CXX_FLAGS "-std=c++11 -O3")
# Add here all needed FogLAMP libraries as list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
using namespace std;
using namespace rapidjson;

#define PLUGIN_NAME "ocs_V2"
#define PLUGIN_NAME "ocs"
#define TYPE_ID_KEY "type-id"
#define TYPE_ID_DEFAULT 1

Expand Down Expand Up @@ -136,7 +136,7 @@ extern "C" {
*/
static PLUGIN_INFORMATION info = {
PLUGIN_NAME, // Name
"1.0.0", // Version
"1.7.0", // Version
SP_PERSIST_DATA, // Flags
PLUGIN_TYPE_NORTH, // Type
"1.0.0", // Interface version
Expand Down Expand Up @@ -275,6 +275,9 @@ void plugin_start(const PLUGIN_HANDLE handle,
Logger* logger = Logger::getLogger();
CONNECTOR_INFO* connInfo = (CONNECTOR_INFO *)handle;

if (storedData.compare("{}") == 0)
return;

// Parse JSON plugin_data
Document JSONData;
JSONData.Parse(storedData.c_str());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 2.6.0)

project(PI_Server_V2)
project(pi_server)

set(CMAKE_CXX_FLAGS "-std=c++11 -O3")
# Add here all needed FogLAMP libraries as list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using namespace std;
using namespace rapidjson;
using namespace SimpleWeb;

#define PLUGIN_NAME "PI_Server_V2"
#define PLUGIN_NAME "pi_server"
#define TYPE_ID_KEY "type-id"
#define SENT_TYPES_KEY "sentDataTypes"
#define DATA_KEY "dataTypes"
Expand Down Expand Up @@ -258,7 +258,7 @@ extern "C" {
*/
static PLUGIN_INFORMATION info = {
PLUGIN_NAME, // Name
"1.0.0", // Version
"1.7.0", // Version
SP_PERSIST_DATA, // Flags
PLUGIN_TYPE_NORTH, // Type
"1.0.0", // Interface version
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ add_subdirectory(C/services/filter-plugin-interfaces/python)
add_subdirectory(C/services/filter-plugin-interfaces/python/filter_ingest_pymodule)
add_subdirectory(C/tasks/north)
add_subdirectory(C/plugins/utils)
add_subdirectory(C/plugins/north/PI_Server_V2)
add_subdirectory(C/plugins/north/ocs_V2)
add_subdirectory(C/plugins/north/pi_server)
add_subdirectory(C/plugins/north/ocs)

6 changes: 0 additions & 6 deletions python/foglamp/plugins/north/ocs/README.rst

This file was deleted.

Empty file.
Loading