Closed heliping closed 1 year ago
The connection error doesn't happen when you create the client with Client::new()
, but rather when you call connect()
on the client.
You appear to be getting the connection result in your code at src/controllers/wkc.rs:19
and attempting to .unwrap()
the error, resulting in a panic.
cool, sloved, thanks.
I use mqtt with backend to send mqtt message. when I input the wrong ip, I need the api reback error message, but now only pending. my code like this
I need the tcp connect when timeout can return the error to client. but now nothing.
The error message by console.