From 537fd0b7d559a66919f6beb512cae5733d02aa3f Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 13 Jan 2025 14:25:46 +0100 Subject: [PATCH 1/3] config for useCBflowControl --- lib/model/Configuration.js | 3 ++- lib/services/configurationData.js | 6 ++++-- lib/services/configurations.js | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/model/Configuration.js b/lib/model/Configuration.js index 2e64842..ddc7880 100644 --- a/lib/model/Configuration.js +++ b/lib/model/Configuration.js @@ -66,7 +66,8 @@ const Configuration = new Schema({ entityNameExp: String, payloadType: String, endpoint: String, - transport: String + transport: String, + useCBflowControl: Boolean }); function load() { diff --git a/lib/services/configurationData.js b/lib/services/configurationData.js index 639705c..1019689 100644 --- a/lib/services/configurationData.js +++ b/lib/services/configurationData.js @@ -40,7 +40,8 @@ const provisioningAPITranslation = { autoprovision: 'autoprovision', explicitAttrs: 'explicitAttrs', entityNameExp: 'entityNameExp', - payloadType: 'payloadType' + payloadType: 'payloadType', + useCBflowControl: 'useCBflowControl' }; function createGetWithFields(fields) { @@ -140,7 +141,8 @@ function save(theLogger, protocol, description, iotagent, resource, configuratio 'autoprovision', 'explicitAttrs', 'entityNameExp', - 'payloadType' + 'payloadType', + 'useCBflowControl' ]; theLogger.debug('Saving Configuration [%s][%s][%s]', protocol, iotagent, resource); diff --git a/lib/services/configurations.js b/lib/services/configurations.js index ff1a103..02fcd31 100644 --- a/lib/services/configurations.js +++ b/lib/services/configurations.js @@ -35,7 +35,8 @@ const retrievingAPITranslation = { entityNameExp: 'entityNameExp', payloadType: 'payloadType', transport: 'transport', - endpoint: 'endpoint' + endpoint: 'endpoint', + useCBflowControl: 'useCBflowControl' }; function isInvalidParameter(param) { @@ -83,7 +84,8 @@ function translateToApi(logger, configurations) { 'entityNameExp', 'payloadType', 'endpoint', - 'transport' + 'transport', + 'useCBflowControl' ]; logger.debug('configurations %j', configurations); From d2ca7965c2608574ff0d5fa326617ff31f8c1cfc Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 13 Jan 2025 14:36:56 +0100 Subject: [PATCH 2/3] update CNR --- Changelog | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Changelog b/Changelog index f6c8f73..59009ea 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +- Add: allow set useCBflowControl in config group + 3.5.0 (Sep 18th, 2024) - Upgrade iotagent-node-lib dependency from 4.5.0 to 4.6.0 From bde1c71ed828d418e51c5d44e0cbad4faa61b1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Tue, 14 Jan 2025 16:27:04 +0100 Subject: [PATCH 3/3] Update Changelog --- Changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog b/Changelog index ad6ac49..21d7890 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,4 @@ -- Add: allow set useCBflowControl in config group +- Add: allow set useCBflowControl in config group (iotagent-node-lib#1420) - Add: allow store last measure in device (by id, apikey, service and subservice) in config group (iotagent-node-lib#1669) 3.5.0 (Sep 18th, 2024)