diff --git a/Changelog b/Changelog index 90a5e89..21d7890 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,4 @@ +- 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) diff --git a/lib/model/Configuration.js b/lib/model/Configuration.js index 5a62353..0018feb 100644 --- a/lib/model/Configuration.js +++ b/lib/model/Configuration.js @@ -67,6 +67,7 @@ const Configuration = new Schema({ payloadType: String, endpoint: String, transport: String, + useCBflowControl: Boolean, storeLastMeasure: Boolean }); diff --git a/lib/services/configurationData.js b/lib/services/configurationData.js index af221cd..3088e1f 100644 --- a/lib/services/configurationData.js +++ b/lib/services/configurationData.js @@ -41,6 +41,7 @@ const provisioningAPITranslation = { explicitAttrs: 'explicitAttrs', entityNameExp: 'entityNameExp', payloadType: 'payloadType', + useCBflowControl: 'useCBflowControl', storeLastMeasure: 'storeLastMeasure' }; @@ -142,6 +143,7 @@ function save(theLogger, protocol, description, iotagent, resource, configuratio 'explicitAttrs', 'entityNameExp', 'payloadType', + 'useCBflowControl', 'storeLastMeasure' ]; diff --git a/lib/services/configurations.js b/lib/services/configurations.js index a6faf2e..5e7f98b 100644 --- a/lib/services/configurations.js +++ b/lib/services/configurations.js @@ -36,6 +36,7 @@ const retrievingAPITranslation = { payloadType: 'payloadType', transport: 'transport', endpoint: 'endpoint', + useCBflowControl: 'useCBflowControl', storeLastMeasure: 'storeLastMeasure' }; @@ -85,6 +86,7 @@ function translateToApi(logger, configurations) { 'payloadType', 'endpoint', 'transport', + 'useCBflowControl', 'storeLastMeasure' ];