FIWARE Service and ServicePath

This custom node is a simple node that allows to manage FIWARE Service and ServicePath.

Passthrough

It allows to pass FIWARE Service value and/or ServicePath value to output without manipulation.

Properties

  • name: A name for a node instance
  • FIWARE Service: Passthrough
  • FIWARE ServicePath: Passthrough

Example

Input

payload JSON Object

A msg.context should contain JSON Object.

{
  "fiwareService": "openiot",
  "fiwareServicePath": "/iot"
}

Output

payload JSON Object

A msg.context contains JSON Object.

{
  "fiwareService": "openiot",
  "fiwareServicePath": "/iot"
}

Add FIWARE Service and/or ServicePath

It allows to add FIWARE Service and/or FIWARE ServicePath to msg.context.

Properties

  • name: A name for a node instance
  • FIWARE Service: Add
  • Service value: A value of FIWARE Service
  • FIWARE ServicePath: Add
  • Service valuePath: A value of FIWARE ServicePath

Examples

Set Service value to OpenIoT and Service valuePath to /iot.

Input

payload JSON Object

A msg.context should contain JSON Object.

{}

Output

payload JSON Object

A msg.context contains JSON Object.

{
  "fiwareService":"openiot",
  "fiwareServicePath":"/iot"
}

Delete FIWARE Service and/or ServicePath

It allows to delete FIWARE Service and/or FIWARE ServicePath from msg.context.

Properties

  • name: A name for a node instance
  • FIWARE Service: Delete
  • FIWARE ServicePath: Delete

Example

Input

payload JSON Object

A msg.context should contain JSON Object.

{
  "fiwareService":"openiot",
  "fiwareServicePath":"/iot"
}

Output

payload JSON Object

A msg.context contains JSON Object.

{}