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 have a standalone Windows 10 application, .NET Framework 4.8, where we need to be able to connect to two different devices. We have certain requirements:
We can only connect to one device at a time
We must support non-encrypted connection (legacy)
We shall communicate via TLS 1.2 / 1.3 connection to both devices
Each device must use a unique port
Per the response here, #1620 (comment), MQTTnet doesn't support multiple endpoints yet.
Because of the limitations, we cannot seemingly create the server and start it once when the application starts. We either need multiple brokers, or each time the user wants to connect to a different device type, we need to stop the current running server / broker, reconfigure it to use the new port, certificate, etc. and then restart it.
Is there a way we can monitor the status of the server before trying to restart it, to make sure it was fully stopped?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
We have a standalone Windows 10 application, .NET Framework 4.8, where we need to be able to connect to two different devices. We have certain requirements:
We can only connect to one device at a time
We must support non-encrypted connection (legacy)
We shall communicate via TLS 1.2 / 1.3 connection to both devices
Each device must use a unique port
Per the response here, #1620 (comment), MQTTnet doesn't support multiple endpoints yet.
Because of the limitations, we cannot seemingly create the server and start it once when the application starts. We either need multiple brokers, or each time the user wants to connect to a different device type, we need to stop the current running server / broker, reconfigure it to use the new port, certificate, etc. and then restart it.
Is there a way we can monitor the status of the server before trying to restart it, to make sure it was fully stopped?
Any help would be appreciated.
Our stop method looks like this:
I tried implementing mqttserver.StoppedAsync, but the handler doesn't seem to get called.
Beta Was this translation helpful? Give feedback.
All reactions