Skip to content

Commit

Permalink
Merge pull request #328 from telefonicaid/task/add_transport_endpoint…
Browse files Browse the repository at this point in the history
…_configuration

add endpoint and transport to configurations (device groups)
  • Loading branch information
fgalan authored Dec 20, 2023
2 parents 706c69b + f6fee9d commit b6b594d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Add: transport and endpoint to Group model (iotagent-node-lib#1542)

3.0.0 (November 24th, 2023)

- Add: payloadType to device and groups model (iotagent-json#778)
Expand Down
4 changes: 3 additions & 1 deletion lib/model/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const Configuration = new Schema({
timestamp: Boolean,
explicitAttrs: ExplicitAttrsType,
entityNameExp: String,
payloadType: String
payloadType: String,
endpoint: String,
transport: String
});

function load(db) {
Expand Down
8 changes: 6 additions & 2 deletions lib/services/configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ const retrievingAPITranslation = {
description: 'description',
explicitAttrs: 'explicitAttrs',
entityNameExp: 'entityNameExp',
payloadType: 'payloadType'
payloadType: 'payloadType',
transport: 'transport',
endpoint: 'endpoint'
};

function isInvalidParameter(param) {
Expand Down Expand Up @@ -83,7 +85,9 @@ function translateToApi(configurations) {
'timestamp',
'explicitAttrs',
'entityNameExp',
'payloadType'
'payloadType',
'endpoint',
'transport'
];

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

0 comments on commit b6b594d

Please sign in to comment.