Closed yschimke closed 5 months ago
Hello, no it is not supported in the current version, but I just added it now here https://github.com/davidepianca98/KMQTT/commit/cc944898d8cc6d1e1c4a6a04b8dc1105badeb27e
It works like this:
val client = MQTTClient(
MQTTVersion.MQTT5,
"test.mosquitto.org",
8883,
TLSClientSettings(checkServerCertificate = false),
30,
) {
println(it.payload?.toByteArray()?.decodeToString())
}
Trying to connect to a bambu labs printer, without obvious access to certs.
Standard practice seems to be to disable TLS validation.
https://github.com/markhaehnel/bambulab/blob/main/src/client.rs#L87
Is this supported?