1
Eiden 2023-05-11 10:09:33 +08:00
发送 whois 消息, 这个消息是个广播, 正常设备收到后会回复 i-am 消息, 这个流程一般 bacnet 的包都实现了的, 看看文档吧
|
3
Eiden 2023-05-12 09:42:40 +08:00 1
https://github.com/Code-House/bacnet4j-wrapper ``` BacNetClient client = new BacNetIpClient("<bind ip>", "<broadcast ip>", <client device id>); client.start(); Set<Device> devices = client.discoverDevices(5000); // given number is timeout in millis for (Device device : devices) { System.out.println(device); for (Property property : client.getDeviceProperties(device)) { System.out.println(property.getName() + " " + client.getPropertyValue(property)); } } client.stop(); ``` 这个 discoverDevices 就是 |