subscribe to our Youtube


14455 questions

17168 answers


0 members

We are migrating to our new platform at Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
+1 vote
330 views 2 comments
by anonymous
Hello I would like to send some data i collect from modbus to to an MQTT Broker. My sensor gives me five values an I like to publish each value in an seperate topic.

How is this possilble?

2 Answers

+1 vote
by anonymous

Yes, it is possible. For that, you will need to create five data to server instances and configure your Modbus master to have five slave interfaces that read each value individually.

by anonymous
Okay, but all my instances would have the same address so how can i filter with variable goes into which topic.

Note: I'm using Modbus RTU
+2 votes
by anonymous
I want to support the topicstarter. I think an excellent solution to the problem of sorting different data from one slave would be the ability to specify a variable in the Topic field of the sender (by analogy with the JSON field). For example, "/modbusslave1/%r" so that data with different request name falls into different subtopics.
by anonymous
Sorry for the late question, but how do i manage to sperate the data? If I set up different datasenders, all the values are in all the topics. I cannot filter by SlaveID or IP, because all the Values come frome the same device... very annoying