Skip to content

Commit

Permalink
Merge pull request #355 from telefonicaid/task/support_useCBflowContr…
Browse files Browse the repository at this point in the history
…ol_config

Task/support use cb flow control config
  • Loading branch information
fgalan authored Jan 14, 2025
2 parents d5cea7b + bde1c71 commit 7236eaa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions lib/model/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const Configuration = new Schema({
payloadType: String,
endpoint: String,
transport: String,
useCBflowControl: Boolean,
storeLastMeasure: Boolean
});

Expand Down
2 changes: 2 additions & 0 deletions lib/services/configurationData.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const provisioningAPITranslation = {
explicitAttrs: 'explicitAttrs',
entityNameExp: 'entityNameExp',
payloadType: 'payloadType',
useCBflowControl: 'useCBflowControl',
storeLastMeasure: 'storeLastMeasure'
};

Expand Down Expand Up @@ -142,6 +143,7 @@ function save(theLogger, protocol, description, iotagent, resource, configuratio
'explicitAttrs',
'entityNameExp',
'payloadType',
'useCBflowControl',
'storeLastMeasure'
];

Expand Down
2 changes: 2 additions & 0 deletions lib/services/configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const retrievingAPITranslation = {
payloadType: 'payloadType',
transport: 'transport',
endpoint: 'endpoint',
useCBflowControl: 'useCBflowControl',
storeLastMeasure: 'storeLastMeasure'
};

Expand Down Expand Up @@ -85,6 +86,7 @@ function translateToApi(logger, configurations) {
'payloadType',
'endpoint',
'transport',
'useCBflowControl',
'storeLastMeasure'
];

Expand Down

0 comments on commit 7236eaa

Please sign in to comment.