Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The DataHub nodes provided in LoopEdge Flows can be used to publish and subscribe to DataHub IPSO (Internet Protocol for Smart Objects) topics.

Table of Contents

...

Section
bordertrue


Column
width40%

DataHub (Publish) Node

The DataHub input node is used to send data to the local IPSO topic. The local topic is defined in the DataHub section. The local topic is connected to the cloud connector on the DataHub page. The user uses the same topic to send data to the local topic. Select the server and enter the topic in order to publish data to the local DataHub.


Column
width40%


Code Block
languagetext
[
  {
    "id": "bfa9c926.270da8",
    "type": "tab",
    "label": "Dmitri's Flow"
  },
  {
    "id": "82f14e62.36182",
    "type": "Datahub Publish",
    "z": "bfa9c926.270da8",
    "name": "",
    "natc": "",
    "topicname": "",
    "x": 300,
    "y": 200,
    "wires": []
  }
]



Column
width20%


...

Section
bordertrue


Column
width40%

DataHub (Subscribe) Node

The Datahub output node is used to get data from the local IPSO topic. Data being published to the local IPSO topic can be subscribed using the Datahub output flow. The legacy devices connected to DeviceHub publish their data to a local topic, which can be published from and subscribed to a cloud connection to send it to the cloud. Select the server and the topic in order to subscribe to the local DataHub.


Column
width40%


Code Block
languagetext
[
  {
    "id": "28a47eb0.f0cf92",
    "type": "tab",
    "label": "Test"
  },
  {
    "id": "e7e93943.28cf68",
    "type": "Datahub Subscribe",
    "z": "28a47eb0.f0cf92",
    "name": "",
    "natc": "",
    "topicname": "",
    "x": 280,
    "y": 240,
    "wires": [
      []
    ]
  }
]



Column
width20%


...

Section
bordertrue


Column
width60%

Example of Publishing Data Using a DataHub Node

Inject the data being calculated to the Datahub Publish node. The data will be sent to the IPSO topic defined in DataHub.


Column
width40%

Relevant references:


...