Hi Folks,
New to TagoIO and signed up for the free plan to just some testing and learning.
I’m using a Programmable Logic Controller (PLC) to send values out via a MQTT broker. I understand as its a free plan i need to use the MQTT Relay.
I’ve setup the relay on my personal server at home using the setup video on the net (really good video).
So the setup is this
PLC > EMQX (Cloud Broker) > TagoIO Relay (Personal Server) > TagoIO
I have the PLC sending out a value that counts from 0 to 100 then 100 to 0 constantly and its sent out every second. This all work fine, i can see the the value being received by TagoIO in the device i created via the Live Inspection tool. There seems to be around a 2 second lag from being sent out to be received by TagoIO but this is no issues. I can see the value is being received every second.
This value is sent out on the topic /device/123123123.
I’ve added another topic to the output from the PLC on topic /device/321321321 with a alternating value, value ranges from -250 to +250. This is were issues start to happen.
The PLC send out the two values simultaneously, i can see that the broker receives these values simultaneously every second via its test connection function.
Now what happens is that TagIO (Live Inspector) now receives the values from /device/123123123 every two seconds and same with /device/321321321 instead of TagoIO receiving the values simultaneously.
Watching the scrolling log of the MQTT Relay it seems the relay can only handle one topic at a time so it alternates sending out the values one at at time.
I was hoping for testing the dashboard to send out 4 different values but if i do then /device/123123123 will receive its value every 4 seconds instead of every 1 second.
The question is have i done something wrong or is this a limitation of the relay?
I also noticed that when i put the PLC in stop mode to stop sending out data, the EMQX did indeed stop receiving data but yet the MQTT Relay was still sending out information as if the relay was storing the values in a buffer then sending it out, it kept sending the data for a good 15 seconds before it finally stop.
Is this a function of the relay or glitch/issue?
Any assistance would be greatly appreciated.


