NGSI-LD encode
This custom node is a simple node that encodes forbidden characters.
Character | Encoded characters |
---|---|
" | %22 |
% | %25 |
' | %27 |
( | %28 |
) | %29 |
; | %3B |
< | %3C |
= | %3D |
> | %3E |
Properties
Property | Description |
---|---|
Name | A name for a node instance |
Input (string)
payload string
A msg.payload
should contain a string.
<Sensor>
Output (string)
payload string
A msg.payload
contains a string.
%3CSensor%3E
statusCode Number
A msg.statusCode
contains a status code.
200
Input (JSON Object)
payload JSON Object
A msg.payload
should contain a NGSI-LD data.
{
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"name": "<Sensor>"
}
Output (JSON Object)
payload JSON Object
A msg.payload
contains a NGSI-LD data.
{
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"name": "%3CSensor%3E"
}
statusCode Number
A msg.statusCode
contains a status code.
200
Input (JSON Array)
payload JSON Array
A msg.payload
should contain a NGSI-LD data.
[
{
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"name": "<Sensor>"
}
]
Output (JSON Array)
payload JSON Array
A msg.payload
contains a NGSI-LD data.
[
{
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"name": "%3CSensor%3E"
}
]
statusCode Number
A msg.statusCode
contains a status code.
200