slowtec / tokio-modbus

A tokio-based modbus library
Apache License 2.0
379 stars 117 forks source link

is_connected()? #227

Open dr-kernel opened 7 months ago

dr-kernel commented 7 months ago

I'm looking at how best to determine that my transport layer is still active without having to send a request to the server and get an ErrorKind::NotConnected. I've noticed that the transport object is heavily buried int he client. Any suggestions about best way to do a quick boolean check before trying to read/write and having to create a new connection?

CosminPerRam commented 6 months ago

bump