Hi again,
We're trying to send a WritePropertyRequest to the Present Value property of a Binary Value object, however the response (ack) we get back from the remote device is an error, with errorClass = 2 // property
and errorCode = 9 // invalidDataType
. We're sending a property value of type Boolean
, which is what I'd expect to be the accepted data type for a binary value, but maybe I'm wrong. Also I'm not quite sure about the propertyArrayIndex
parameter. So I guess I'm wondering if the following parameters are correct:
// Kotlin
localDevice.send(remoteDevice,
WritePropertyRequest(ObjectIdentifier(ObjectType.binaryValue, 2), // object
PropertyIdentifier.presentValue, // property
null, // propertyArrayIndex. null since the present value property is not an array (?)
Boolean.valueOf(true), // propertyValue
UnsignedInteger(1)), // priority
ResponseConsumer())
Thanks in advance,
Joshua