-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mqtt2 MTConnect/Probe/ topic name for agent #385
Comments
It is the type of Device. It is the same as the node below the Devices collection in the Devices model. BestW(Sent from mobile)On Dec 22, 2023, at 00:55, robot-ranger ***@***.***> wrote:
agent device probe topic is prefixed with Agent.
image.png (view on web)
is that intentional? what is Agent. in this case? is that unique to the 'agent' device type?
If it is device name - why dont the other devices have topics with the same [name].[uuid] format?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
ok, right. i was expecting to be able to walk the json to Current/Agent by path instead of by name. if that makes any sense. since the name is ...but the owner/operator of the agent COULD have changed the name in agent.cfg... is the expectation that we do some logical Admittedly this would be abusive on behalf of the owner/operator of the agent, but what if one of the devices' uuid started with 'Agent'? (then the if statement above would be true for more than one device) Ex: if a device just happens to have a uuid |
TLDR - imo, the agent probe and current should be accessible by name-agnostic path to improve the flexibility of client apps. ETA: it would be nice to be able to subscribe to the agent topics without knowing the name, and be guaranteed i am getting the agent exclusively |
Not sure what you mean exactly. Pls give an example. |
I cant exclusively subscribe to the agent because my client app may not know the agent uuid and therefore does not know the topic string to subscribe to. The only way to "find" the agent is to subscribe to the entire for maximum inter-operability between client apps and cppagent - I propose that the agent should have fixed and common topic strings without uuid, so that any app or adapter can locate and query the agent without knowing uuid something like Any app or data consumer that wants to further verify the agent by uuid, it still can. |
i suppose i could unsubscribe... 🤔 |
What would you suggest in the case where there is more than one agent per broker?Do we introduce a “node id” concept like SpB where we add the agent id as a prefix for all devices including the agent? (Sent from mobile)On Dec 24, 2023, at 01:31, robot-ranger ***@***.***> wrote:
i suppose i could unsubscribe... 🤔
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
well... i hadnt thought of that; not something we envisioned in our use cases. But that is a good point.. |
Is this still an issue? Otherwise I will close. |
agent device probe topic is prefixed with
Agent.
is that intentional? what is
Agent.
in this case? is that unique to the 'agent' device type?If it is device name - why dont the other devices have topics with the same [name].[uuid] format?
The text was updated successfully, but these errors were encountered: