EventBus

Overview

Eventbus acts as an interface for sending/receiving messages on mqtt topics.

It supports 3 kinds of mode:

  • internalMqttMode
  • externalMqttMode
  • bothMqttMode

Topic

eventbus subscribes to the following topics:

  1. - $hw/events/upload/#
  2. - SYS/dis/upload_records
  3. - SYS/dis/upload_records/+
  4. - $hw/event/node/+/membership/get
  5. - $hw/event/node/+/membership/get/+
  6. - $hw/events/device/+/state/update
  7. - $hw/events/device/+/state/update/+
  8. - $hw/event/device/+/twin/+

Note: topic wildcards

wildcardDescription
#It must be the last character in the topic, and matches the current tree and all subtrees.
+It matches exactly one item in the topic tree.

Flow chart

1. eventbus sends messages from external client

eventbus sends messages from external client

2. eventbus sends response messages to external client

eventbus sends response messages to external client

The flow is almost the same in internal mode except the eventbus is as message broker itself.

Last updated on Jan 1, 0001