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
Eventually we should make this (and the heartbeat period) settable using a config file. I don't have the bandwidth to implement this myself in the near future, but will keep this in mind as an issue to be addressed before we deploy an agent based on this template to Study 4.
Currently, the example C++ agent template uses a hard-coded value for the mqtt::async_client client_id:
tomcat/exe/cpp_agent_template/Agent.cpp
Line 20 in a1ef93c
The MQTT standard requires that client_ids be unique, otherwise it will disconnect the old client for the new one.
Perhaps we could introduce an agent_name variable and base the client_id off of that?
The text was updated successfully, but these errors were encountered: