iotagent-node-lib 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -343,7 +343,8 @@ function sendUpdateValueNgsi2(entityName, attributes, typeInformation, token, ca
|
|
|
343
343
|
const payload = {
|
|
344
344
|
entities: [
|
|
345
345
|
{
|
|
346
|
-
id
|
|
346
|
+
// CB entity id should be always a String
|
|
347
|
+
id: String(entityName)
|
|
347
348
|
}
|
|
348
349
|
]
|
|
349
350
|
};
|
|
@@ -677,8 +678,9 @@ function sendUpdateValueNgsi2(entityName, attributes, typeInformation, token, ca
|
|
|
677
678
|
logger.debug(context, 'sendUpdateValueNgsi2 entityNameExp %j ', typeInformation.entityNameExp);
|
|
678
679
|
entityName = expressionPlugin.applyExpression(typeInformation.entityNameExp, ctxt, typeInformation);
|
|
679
680
|
// CB entity id should be always a String
|
|
680
|
-
|
|
681
|
-
|
|
681
|
+
entityName = String(entityName);
|
|
682
|
+
payload.entities[0].id = entityName;
|
|
683
|
+
ctxt['entity_name'] = entityName;
|
|
682
684
|
} catch (e) {
|
|
683
685
|
logger.debug(
|
|
684
686
|
context,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "iotagent-node-lib",
|
|
3
3
|
"license": "AGPL-3.0-only",
|
|
4
4
|
"description": "IoT Agent library to interface with NGSI Context Broker",
|
|
5
|
-
"version": "3.4.
|
|
5
|
+
"version": "3.4.2",
|
|
6
6
|
"homepage": "https://github.com/telefonicaid/iotagent-node-lib",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"fiware",
|