[04:17:11 INF] Starting managed mqtt client with options {"MqttServerAddress": "abcd.com", "MqttServerPort": 1884, "CertificateCaPath": "/etc/ssl/certs/RootCA.der.crt", "AuthenticationCertificatePath": "/certs/local/abc.pfx", "WithTls": true, "IgnoreRemoteCertificateNameMismatch": true, "$type": "MqttClientWrapperOptions"}.
[04:17:11 INF] Unsubscribe from topics: .
[04:17:11 INF] Subscribe to topics [{"NoLocal": false, "QualityOfServiceLevel": "AtMostOnce", "RetainAsPublished": false, "RetainHandling": "SendAtSubscribe", "Topic": "inputextensiontopic", "$type": "MqttTopicFilter"}, {"NoLocal": false, "QualityOfServiceLevel": "AtMostOnce", "RetainAsPublished": false, "RetainHandling": "SendAtSubscribe", "Topic": "abc/topic7", "$type": "MqttTopicFilter"}].
[04:17:11 INF] Connected to server: {"ConnectResult": {"ResultCode": "Success", "IsSessionPresent": false, "WildcardSubscriptionAvailable": true, "RetainAvailable": true, "AssignedClientIdentifier": null, "AuthenticationMethod": null, "AuthenticationData": null, "MaximumPacketSize": 0, "ReasonString": null, "ReceiveMaximum": 20, "MaximumQoS": "ExactlyOnce", "ResponseInformation": null, "TopicAliasMaximum": 10, "ServerReference": null, "ServerKeepAlive": 0, "SessionExpiryInterval": 0, "SubscriptionIdentifiersAvailable": true, "SharedSubscriptionAvailable": true, "UserProperties": null, "$type": "MqttClientConnectResult"}, "$type": "MqttClientConnectedEventArgs"}.
Environment:
Problem:
We are experiencing intermittent disconnections between app1 and the mqttbroker. The managed MQTT client is expected to handle reconnections automatically, and this works reliably in local development. However, in production, the following issues occur:
MqttClient Options:
Logs (from initial connection):
Troubleshooting Steps Taken:
Questions:
Temporary Solution:
Any help or insights would be appreciated!