You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are noticing on our brokers that, when the agent connects, it is adding itself as a Device on the data stream of the mqtt relay. Below is a screenshot of us monitoring one of our brokers when an agent is connected. We see that the GUID of the agent is added to the MTConnect/Devices prefix
We were expecting the agent to publish on MTConnect/Agents prefix since we know that this is the way the v5 agent is handling this.
Also the README's regarding this on the master branch also suggest that the agents are expected to be publishing on the MTConnect/Agents prefix
The Information topic contains information about the MTConnect Agent that would typically be contained in the Header node in an MTConnect XML Response using HTTP.
In addition to the standard MTConnect information, the Information payload also contains the configured "heartbeatInterval", "observationIntervals", and a list of the Device UUIDs that are published by this Agent.
I have been inspecting the code and I can see that the entity server CreateMessage method always refers to the topic <PREFIX>/Devices/* when creating messages for observations
There is a CreateMessage overload that takes a Device as an argument and it would make sense that the message is created for a device
I failed to understand where the agent is being added as a device in the code, but I imagine there is a need to have CreateMessage for agents and use that for the messages that the agent is publishing? maybe is there a way that, via configuration, we can avoid including the agent as part of the data stream?
The text was updated successfully, but these errors were encountered:
Hi @PatrickRitchie
This issue has been noticed on v6.5 using Ubuntu
Here is the configuration of our
mqtt-relay
We are noticing on our brokers that, when the agent connects, it is adding itself as a Device on the data stream of the mqtt relay. Below is a screenshot of us monitoring one of our brokers when an agent is connected. We see that the GUID of the agent is added to the
MTConnect/Devices
prefixWe were expecting the agent to publish on
MTConnect/Agents
prefix since we know that this is the way the v5 agent is handling this.Also the README's regarding this on the master branch also suggest that the agents are expected to be publishing on the
MTConnect/Agents
prefixMTConnect.NET/docs/MQTT-Protocol.md
Lines 57 to 95 in cb12bbd
I have been inspecting the code and I can see that the entity server
CreateMessage
method always refers to the topic<PREFIX>/Devices/*
when creating messages for observationsMTConnect.NET/libraries/MTConnect.NET-MQTT/MTConnectMqttEntityServer.cs
Lines 150 to 211 in cb12bbd
There is a
CreateMessage
overload that takes a Device as an argument and it would make sense that the message is created for a deviceI failed to understand where the agent is being added as a device in the code, but I imagine there is a need to have
CreateMessage
for agents and use that for the messages that the agent is publishing? maybe is there a way that, via configuration, we can avoid including the agent as part of the data stream?The text was updated successfully, but these errors were encountered: