Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Upgrade NodeJS version from 16-bullseye-slim to 24-bullseye-slim in Dockerfile
- Set Nodejs 20 as minimum version in packages.json (effectively removing Nodev16 and Nodev18 from supported versions)
- Add: command modes (cmdMode): legacy, notification and advancedNotification (iota-node-lib#1732)
- Upgrade NodeJS version from 16-bullseye-slim to 24-bullseye-slim in Dockerfile
- Set Nodejs 20 as minimum version in packages.json (effectively removing Nodev16 and Nodev18 from supported versions)
3 changes: 2 additions & 1 deletion lib/model/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ const Configuration = new Schema({
endpoint: String,
transport: String,
useCBflowControl: Boolean,
storeLastMeasure: Boolean
storeLastMeasure: Boolean,
cmdMode: String
});

function load() {
Expand Down
6 changes: 4 additions & 2 deletions lib/services/configurationData.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const provisioningAPITranslation = {
entityNameExp: 'entityNameExp',
payloadType: 'payloadType',
useCBflowControl: 'useCBflowControl',
storeLastMeasure: 'storeLastMeasure'
storeLastMeasure: 'storeLastMeasure',
cmdMode: 'cmdMode'
};

function createGetWithFields(fields) {
Expand Down Expand Up @@ -144,7 +145,8 @@ function save(theLogger, protocol, description, iotagent, resource, configuratio
'entityNameExp',
'payloadType',
'useCBflowControl',
'storeLastMeasure'
'storeLastMeasure',
'cmdMode'
];

theLogger.debug('Saving Configuration [%s][%s][%s]', protocol, iotagent, resource);
Expand Down
6 changes: 4 additions & 2 deletions lib/services/configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const retrievingAPITranslation = {
transport: 'transport',
endpoint: 'endpoint',
useCBflowControl: 'useCBflowControl',
storeLastMeasure: 'storeLastMeasure'
storeLastMeasure: 'storeLastMeasure',
cmdMode: 'cmdMode'
};

function isInvalidParameter(param) {
Expand Down Expand Up @@ -87,7 +88,8 @@ function translateToApi(logger, configurations) {
'endpoint',
'transport',
'useCBflowControl',
'storeLastMeasure'
'storeLastMeasure',
'cmdMode'
];

logger.debug('configurations %j', configurations);
Expand Down