Skip to content

Commit

Permalink
config for useCBflowControl
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Jan 13, 2025
1 parent 3d2e47f commit 537fd0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/model/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ const Configuration = new Schema({
entityNameExp: String,
payloadType: String,
endpoint: String,
transport: String
transport: String,
useCBflowControl: Boolean
});

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 @@ -40,7 +40,8 @@ const provisioningAPITranslation = {
autoprovision: 'autoprovision',
explicitAttrs: 'explicitAttrs',
entityNameExp: 'entityNameExp',
payloadType: 'payloadType'
payloadType: 'payloadType',
useCBflowControl: 'useCBflowControl'
};

function createGetWithFields(fields) {
Expand Down Expand Up @@ -140,7 +141,8 @@ function save(theLogger, protocol, description, iotagent, resource, configuratio
'autoprovision',
'explicitAttrs',
'entityNameExp',
'payloadType'
'payloadType',
'useCBflowControl'
];

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 @@ -35,7 +35,8 @@ const retrievingAPITranslation = {
entityNameExp: 'entityNameExp',
payloadType: 'payloadType',
transport: 'transport',
endpoint: 'endpoint'
endpoint: 'endpoint',
useCBflowControl: 'useCBflowControl'
};

function isInvalidParameter(param) {
Expand Down Expand Up @@ -83,7 +84,8 @@ function translateToApi(logger, configurations) {
'entityNameExp',
'payloadType',
'endpoint',
'transport'
'transport',
'useCBflowControl'
];

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

0 comments on commit 537fd0b

Please sign in to comment.