Open SticksDev opened 8 months ago
Hi. I am using AsyncClient to make a connection to a mqtts URL, and it does work, but when I attempt to subscribe to a topic, it errors out with "Unknown Error", and I'm not sure what to do. My code is on GitHub, as this is a open soruce project.
mqtts
I start connecting here: https://github.com/SticksDev/BambuConnect/blob/master/src-tauri/src/handlers/bambu/mod.rs#L270
The error occures here: https://github.com/SticksDev/BambuConnect/blob/master/src-tauri/src/handlers/bambu/mod.rs#L328 inside of the map_err closure.
Any ideas?
Also, here's some of the logs my program gives when connecting:
[BambuClient::get_device_ips] Connected to MQTT broker [BambuClient::get_device_ips] Starting discovery for device 0309CA3C2600274 with topic device/0309CA3C2600274/status [BambuClient::get_device_ips] Subscribing to topic device/0309CA3C2600274/status... [commands::bambu::discover_devices] devices: Err(Custom { kind: Other, error: "Failed to subscribe to topic device/0309CA3C2600274/status: Unknown Error" })
Hi. I am using AsyncClient to make a connection to a
mqtts
URL, and it does work, but when I attempt to subscribe to a topic, it errors out with "Unknown Error", and I'm not sure what to do. My code is on GitHub, as this is a open soruce project.I start connecting here: https://github.com/SticksDev/BambuConnect/blob/master/src-tauri/src/handlers/bambu/mod.rs#L270
The error occures here: https://github.com/SticksDev/BambuConnect/blob/master/src-tauri/src/handlers/bambu/mod.rs#L328 inside of the map_err closure.
Any ideas?
Also, here's some of the logs my program gives when connecting: