From 537fd0b7d559a66919f6beb512cae5733d02aa3f Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 13 Jan 2025 14:25:46 +0100 Subject: [PATCH] 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);