Eventbus acts as an interface for sending/receiving messages on mqtt topics.
It supports 3 kinds of mode:
- internalMqttMode
- externalMqttMode
- bothMqttMode
eventbus subscribes to the following topics:
- $hw/events/upload/#
- SYS/dis/upload_records
- SYS/dis/upload_records/+
- $hw/event/node/+/membership/get
- $hw/event/node/+/membership/get/+
- $hw/events/device/+/state/update
- $hw/events/device/+/state/update/+
- $hw/event/device/+/twin/+
Note: topic wildcards
wildcard | Description |
---|---|
# | 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. |
The flow is almost the same in internal mode except the eventbus is as message broker itself.