MQTTExport with dynamic topics #110
Replies: 3 comments 6 replies
-
You can try rule engine eKuiper, it supports dynamic property for MQTT sink. Getting started: https://ekuiper.org/docs/en/latest/edgex/edgex_rule_engine_tutorial.html#overview
|
Beta Was this translation helpful? Give feedback.
-
The MQTT Export supports placeholders in the topic that are replaced with data from the Context Storage as the data is published. The Event's See the example here for default topic format: https://docs.edgexfoundry.org/2.3/microservices/application/Triggers/#example Simply uses this same default topic format for your MQTT Export topic. |
Beta Was this translation helpful? Give feedback.
-
BTW, the custom Topic Formatter only allows you to change how the topic is format for the placeholders rather then the simple default formater of |
Beta Was this translation helpful? Give feedback.
-
I have a pipeline that generates specific topics based on a key-value pair and sends data to that format on MQTT Broker. But, connection to the broker is lost and connected after each call. This causes data loss. Following is the implementation.
Any examples or ideas on how can I achieve the same task in different ways? I have asked this question before and got an answer that can be resolved with
NewMQTTSecretSenderWithTopicFormatter
but I haven't found any examples or proper guide anywhere for that. It might be possible that I didn't grasp the whole idea behind it because of my lack of knowledge and being a beginner with EdgeX.Any help? Appreciated.
Beta Was this translation helpful? Give feedback.
All reactions