Skip to content

Commit

Permalink
Merge branch 'master' into task/set_default_notification_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega authored Feb 28, 2024
2 parents 3ad8270 + d1173a6 commit bcfdf9c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
3 changes: 1 addition & 2 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
- allow receive command notifications from CB (iotagent-node-lib#1455)
- Fix: default attribute type changed from 'string' to 'Text' (#664)
- allow receive command notifications from CB (iotagent-node-lib#1455
6 changes: 6 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
3.3.0 (February 27th, 2024)

- Add: log and return device/group information when DeviceNotFound and GroupNotFound errors (iotagent-json#815)
- Fix: default attribute type changed from 'string' to 'Text' (#664)
- Upgrade iotagent-node-lib dependency from 4.2.0 to 4.3.0

3.2.0 (January 30th, 2024)

- Upgrade iotagent-node-lib dependency from 4.1.0 to 4.2.0
Expand Down
14 changes: 11 additions & 3 deletions lib/iotaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,16 @@ function getEffectiveApiKey(service, subservice, device, callback) {
config.getLogger().debug('Using default API Key: %s', config.getConfig().defaultKey);
callback(null, config.getConfig().defaultKey);
} else {
config.getLogger().error(context, 'COMMANDS-002: Could not find any API Key information for device.');
callback(new errors.GroupNotFound(service, subservice));
config
.getLogger()
.error(
context,
'COMMANDS-002: Could not find any APIKey information for devicein service %s subservice %s and type %s',
service,
subservice,
type
);
callback(new errors.GroupNotFound(service, subservice, type));
}
});
}
Expand Down Expand Up @@ -86,7 +94,7 @@ function retrieveDevice(deviceId, apiKey, callback) {
deviceId
);

callback(new errors.DeviceNotFound(deviceId));
callback(new errors.DeviceNotFound(deviceId, { apikey: apiKey }));
}
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "iotagent-ul",
"license": "AGPL-3.0-only",
"description": "IoT Agent for the Ultralight 2.0 protocol",
"version": "3.2.0-next",
"version": "3.3.0-next",
"homepage": "https://github.com/telefonicaid/iotagent-ul",
"author": {
"name": "Daniel Moran",
Expand Down
3 changes: 2 additions & 1 deletion test/deviceProvisioning/provisionDeviceProduction.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"value": "WGS84"
}
],
"timezone": "Europe/Madrid"
"timezone": "Europe/Madrid",
"timestamp": true
}
]
}

0 comments on commit bcfdf9c

Please sign in to comment.