Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/support use cb flow control config #355

Merged
merged 4 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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
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
fgalan marked this conversation as resolved.
Show resolved Hide resolved
- 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
Loading