Open VitorKawao opened 9 months ago
Hello, I am trying to read the property exceptionSchedule from object Schedule, but the api throws an exception. I can read correctly but I cannot write.
Using a simple exemple (below), reading than trying to write the same value
BacnetClient _client = new BacnetClient(new BacnetIpUdpProtocolTransport(30051, false)); _client.Start(); BacnetAddress bacnetAddress = new BacnetAddress(BacnetAddressTypes.IP, "192.168.1.152"); BacnetObjectTypes bacnetObject = BacnetObjectTypes.OBJECT_SCHEDULE; BacnetPropertyIds propertyIds = BacnetPropertyIds.PROP_EXCEPTION_SCHEDULE; uint instance = 1; BacnetObjectId objId = new BacnetObjectId(bacnetObject, instance); _client.ReadPropertyRequest(bacnetAddress, objId, propertyIds, out IList<BacnetValue> valueList); _client.WritePropertyRequest(bacnetAddress, objId, propertyIds, valueList);
It throws an encode exception, because value.Value is not a IEncode, it is a BacnetValue[]
Trying to do something like this
It stops to throw this exception, but it send another one: "Reject from device, reason: MISSING_REQUIRED_PARAMETER"
Am I doing something wrong?
Thank you, Vítor Guedes
Hello, I am trying to read the property exceptionSchedule from object Schedule, but the api throws an exception. I can read correctly but I cannot write.
Using a simple exemple (below), reading than trying to write the same value
It throws an encode exception, because value.Value is not a IEncode, it is a BacnetValue[]![image](https://github.com/ela-compil/BACnet/assets/41079533/0abec257-92c6-43c5-81eb-2462eaa59d66)
Trying to do something like this![image](https://github.com/ela-compil/BACnet/assets/41079533/0c4ba00d-806d-4abe-879f-3cfddbbcd190)
It stops to throw this exception, but it send another one: "Reject from device, reason: MISSING_REQUIRED_PARAMETER"
Am I doing something wrong?
Thank you, Vítor Guedes