How to tell the client ReadPropertyMultiple is not supported
-
What is the right way for BACnet4J server to tell the client, that it does not support Read Property Multiple to force clients sending ReadProperty one by one? I know that BACnet4J supports Read Property Multiple but in my case, I need the device does not support this feature
-
Hi carnecro,
Hmm. I'm not sure, but maybe disabling it as a supported service on the device object, by doing something like modifying line 88 of com.serotonin.bacnet4j.obj.DeviceObject will do the trick, as then when other BACnet devices inquire about what services are supported reading multiple properties will not be among them. I'm not sure if there's a more explicit way to tell a certain device not to send multiple property requests.,,
-
Thank you, the right hint! The framework can do it without source code modification:
DeviceObject deviceObject = localDevice.getDeviceObject(); ServicesSupported servicesSupported = deviceObject.readProperty(PropertyIdentifier.protocolServicesSupported); servicesSupported.setReadPropertyMultiple(false);
Robert