NGSI decode
This custom node is a simple node that decodes forbidden characters.
Characters | Decoded character |
---|---|
%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.
%3CSensor%3E
Output (string)
payload string
A msg.payload
contains a string.
<Sensor>
statusCode Number
A msg.statusCode
contains a status code.
200
Input (JSON Object)
payload JSON Object
A msg.payload
should contain a NGSI data.
{
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"name": "%3CSensor%3E"
}
Output (JSON Object)
payload JSON Object
A msg.payload
contains a NGSI data.
{
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"name": "<Sensor>"
}
statusCode Number
A msg.statusCode
contains a status code.
200
Input (JSON Array)
payload JSON Array
A msg.payload
should contain a NGSI data.
[
{
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"name": "%3CSensor%3E"
}
]
Output (JSON Array)
payload JSON Array
A msg.payload
contains a NGSI data.
[
{
"id": "urn:ngsi-ld:TemperatureSensor:001",
"type": "TemperatureSensor",
"name": "<Sensor>"
}
]
statusCode Number
A msg.statusCode
contains a status code.
200