WIKI
ABOUT
Login
Remember
Register
FOR TIPS, gUIDES & TUTORIALS
subscribe to our Youtube
GO TO YOUTUBE
Recent
Questions
Popular
Unanswered
Tags
Members
about
wiki
Search
Search
13351
questions
15865
answers
25671
comments
50384
members
Most popular tags
rut955
rut240
rut950
rutx11
rms
vpn
to
wifi
openvpn
sms
not
trb140
firmware
rutx09
ipsec
rutx12
on
-
connection
modbus
Can I publish each register in an separate Topic via Data To Server?
+1
vote
205
views
2
comments
asked
Oct 12, 2021
by
T.Klarmann
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?
trb255
data-to-server
mqtt
modbus
registers
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
+1
vote
answered
Oct 12, 2021
by
VykintasKuzma
Hello,
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.
Regards.
commented
Oct 12, 2021
by
T.Klarmann
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
Please
log in
or
register
to add a comment.
+2
votes
answered
Dec 22, 2021
by
Magalex
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.
commented
Jul 26, 2022
by
run
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
Please
log in
or
register
to add a comment.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Ok
Read more
×
Subscribe
aa@aa.com
NETWORKING
Newsletter
Product change notifications
Your personal data will be processed in accordance with the
privacy policy
I agree
Submit