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
Is your feature request related to a problem? Please describe.
When the VrpcAgent object starts the MQTT connection, it also sets a MQTT client ID. This client ID is generated in the VrpcAgent.js code but cannot be set from the application code. Sometimes the application needs to set the MQTT client ID into some controlled string before the MQTT connection is established, so it should be possible to set this.
Describe the solution you'd like
Add an optional mqttClientId argument to VrpcAgent.serve(), or as option into the constructor.
Related: In VrpcClient there also isn't an argument or option, but the mqtt client id is set in the constructor as member variable this._mqttClientId already, so the application code can just modify that member variable before calling connect. Not particularly elegant, but works already.
The text was updated successfully, but these errors were encountered:
I think I like the option in the constructor better and keep the serve() function free from any configuration. Will hence provide an own PR soonish. Thank you for your PR anyways!
Is your feature request related to a problem? Please describe.
When the VrpcAgent object starts the MQTT connection, it also sets a MQTT client ID. This client ID is generated in the VrpcAgent.js code but cannot be set from the application code. Sometimes the application needs to set the MQTT client ID into some controlled string before the MQTT connection is established, so it should be possible to set this.
Describe the solution you'd like
Add an optional
mqttClientId
argument to VrpcAgent.serve(), or as option into the constructor.Related: In
VrpcClient
there also isn't an argument or option, but the mqtt client id is set in the constructor as member variablethis._mqttClientId
already, so the application code can just modify that member variable before callingconnect
. Not particularly elegant, but works already.The text was updated successfully, but these errors were encountered: