diff --git a/base_device.go b/base_device.go index 4334b63..bbc66fc 100644 --- a/base_device.go +++ b/base_device.go @@ -149,7 +149,7 @@ func (device *baseIotDevice) DisConnect() { } func (device *baseIotDevice) IsConnected() bool { if device.Client != nil { - return device.Client.IsConnected() + return device.Client.IsConnectionOpen() } return false