Merge pull request #6 from DarkGodOne/patch-1
使用IsConnectionOpen替换IsConnected
This commit is contained in:
commit
a61838bdb7
|
@ -149,7 +149,7 @@ func (device *baseIotDevice) DisConnect() {
|
||||||
}
|
}
|
||||||
func (device *baseIotDevice) IsConnected() bool {
|
func (device *baseIotDevice) IsConnected() bool {
|
||||||
if device.Client != nil {
|
if device.Client != nil {
|
||||||
return device.Client.IsConnected()
|
return device.Client.IsConnectionOpen()
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue