Skip to main content
Version: 2.2.1

Sparkplug B

Sparkplug B is a specification designed specifically for IoT applications so that MQTT devices and applications can send and receive messages in a stateful way. ThingsPro Edge provides an interface to enable and configure Sparkplug B communication. The configuration process consissts of the following:

  • Enabling Sparkplug
  • Configuring a Broker
  • Configuring a Telemety Message

Enabling Sparkplug

  1. Click on the Sparkplug B. link and use the scroll bar to enable Sparkplug B.
  2. Specify an Edge Node ID.
  3. Specify a Group ID.
  4. (optional) Specify a Primary Host ID.
  5. Click SUBMIT.

img

Configuring a Broker

  1. Click on the + CREATE link to create a broker for Sparkplug B.
  2. Specify a Server (default port: 8883).
  3. (optional) Enter Client ID, Username,and Password.
  4. Specify a interval of Keep Alive Time (deault 60 seconds)
  5. (optional) Enable SSL/TLS and upload Client Certificate, Key, and Trusted Root CA.
  6. Click SUBMIT.

img

Note that data might be lost during the period of connection interval prior to network connection check(Keep Alive Time). It's suggested to set a shorter interval of Keep Alive Time (e.g. 10 seconds)

img

Configuring a Telemetry Message

  1. Click on the + MESSAGE link.
  2. Select tags from providers (e.g., Modbus Master).
  3. Select devices or system tags.
  4. Click NEXT. img
  5. Select a publish mode.
  6. Select sampling mode.
  7. Click NEXT. img
  8. (optional) Specify a description.
  9. Click SUBMIT. img

Store and Forward

D2C messages can be cached in a specified location and sent to the cloud later. This feature will help you to keep the acquired data in a queue temporarily when the network between your IIoT Gateway and the cloud is disconnected and transmit them to its destination after the reconnection. To enable the function, click on the Store and Forward and select Enable Store and Forward. You can select a target disk and set a maximum storage cache, a retention policy, a TTL (Time to Live) value for the messages and a size of bulk transfer. img

Device Management

Enabling this feature allows cloud service providers manage IoT devices remotely throughout Device Twin and Direct Method technology.

Import & Export

To back the configuration of Sparkplug up, you can export the configuration as a file and import it in ThingsPro Edge again. img

Note that the exported configuration includes credentials, client ID and policies of D2C messages. You may modify those parameters after the configuration file imported to other gateways.

Last updated on 2022-02-16 by alfredli