Open Pandacli opened 1 year ago
HI, Based on your above information, I noticed couple of points:
Regards, Kishore
Hi Kishore ,thanks for your advise and we fix it to change the BinaryPV ,not a Real.
HI, Based on your above information, I noticed couple of points:
- Since the Present_Value is not of array datatype, this value can be omitted. Mentioning Null is not correct.
- Since the Object Type is Binary Value, the datatype of PV is not Real, but BinaryPV. Hence the value can be new BinaryPV(1).
Regards, Kishore
Hope you will remove Null field as well.
WritePropertyRequest writePropertyRequest = new WritePropertyRequest( objectList.get(i), PropertyIdentifier.presentValue, new BinaryPV(setVal), new UnsignedInteger(BaConfig.priority));
Hope you will remove Null field as well.
WritePropertyRequest writePropertyRequest = new WritePropertyRequest( objectList.get(i), PropertyIdentifier.presentValue, new BinaryPV(setVal), new UnsignedInteger(BaConfig.priority));
Yes,it work . I should use BinaryPV.active to control Bacnet device . thank you so much
Hi,all . I use writePropertyRequest to write a new presentValue , but unfortunately it response a wrong code
invalid data-type. could you give us any advise? thanks
there is my code ` WritePropertyRequest writePropertyRequest = new WritePropertyRequest( objectList.get(i), PropertyIdentifier.presentValue, null, new Real(setVal), new UnsignedInteger(BaConfig.priority)); ObjectType objectType = writePropertyRequest.getObjectIdentifier().getObjectType(); ServiceFuture send = localDevice.send(remoteDevice, writePropertyRequest);
【project details 】 setValue = 1; priority is 9 ;
Device detail like this![image](https://user-images.githubusercontent.com/112819610/230886045-44f68d44-6326-4dc1-9c84-3d4228552921.png)