bool Connected
This is a read-only property that indicates whether the Connect Method has been successfully called on this object and that the Disconnect Method has not been called since then. Reading this property does not cause any communication with the device nor does it verify that the connection to the device is still good. For that, see the VerifyConnection Method.
If there is a connection to the device, this property will read as true. If there is not a connection to the device, rather than raising an exception, this property will simply read false.
This property is a boolean type. A true value means that the object is connected to an ETH32 device, while false means that it is not.
Eth32 dev = new Eth32(); try { // .... Your code here // Assume that we don't know for sure whether the dev object // is connected to a device, but that if it is, we want to // disconnect it. This code accomplishes that: if(dev.Connected) { dev.Disconnect(); } } catch (Eth32Exception e) { // Handle Eth32 errors here }