Merge pull request #6 from DarkGodOne/patch-1

使用IsConnectionOpen替换IsConnected
This commit is contained in:
ctlove0523 2021-07-01 17:00:17 +08:00 committed by GitHub
commit a61838bdb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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