MQTT subscriber
Create module
Open EMQX Dashboard (opens new window), click the “Modules” tab on the left, and choose to add:
Select the MQTT subscriber module:
Fill in the relevant parameters:
After clicking Add, the module is added:
WARING
If the MQTT server supports shared subscription, then we should use it. This is because all the emqx nodes in the cluster subscribe to the same topic, if the shared subscription is not used, each node will receive the same message, resulting in duplicate messages.