probeMqttConnection

fun probeMqttConnection(address: String, tlsEnabled: Boolean, username: String?, password: String?)(source)

Run a one-shot reachability/credentials probe against an MQTT broker. Cancels any in-flight probe before starting a new one. Result is exposed via mqttProbeStatus.