Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

读取某个对象的OutOfService属性,返回nil #1

Closed
ltfred opened this issue May 26, 2022 · 3 comments
Closed

读取某个对象的OutOfService属性,返回nil #1

ltfred opened this issue May 26, 2022 · 3 comments

Comments

@ltfred
Copy link

ltfred commented May 26, 2022

data2, err := c.ReadProperty(ctx, device, bacip.ReadProperty{
	ObjectID: objID,
	Property: bacnet.PropertyIdentifier{
		Type: bacnet.OutOfService,
	},
})

如上,我想要读取OutOfService,返回nil。

@scopeccsky
Copy link
Owner

我现在没有可以调试的设备,不能做测试
最近有个新库,推荐使用测试,这个新库可能whois会有点问题, 其他的都很正常
https://github.com/NubeDev/bacnet

@itakyubi
Copy link
Contributor

decoding不支持bool类型,加上下边两行就好了

case applicationTagBoolean: rv.Set(reflect.ValueOf(tag.Value != 0))

@scopeccsky
Copy link
Owner

#2 已经merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants