Bug #132

Writing LocationDescription attributes fails

Added by Stefano Lenzi about 6 years ago. Updated about 6 years ago.

Status:Closed Start date:10/18/2012
Priority:High Due date:
Assignee:Stefano Lenzi % Done:


Category:zigbee.zcl.library Spent time: -
Target version:org.aaloa.zb4osgi.zigbee.zcl.library-0.8.0
Has a patch:No Has license agreement signed:No


As reported by Han on the issue #129, trying to write the attribute result in java.lang.ArrayIndexOutOfBoundsException

Here is an extract of the exception thrown

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 10
        at it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer.appendString(DefaultSerializer.java:70)
        at it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer.appendZigBeeType(DefaultSerializer.java:107)
        at it.cnr.isti.zigbee.zcl.library.impl.global.write.WriteAttributeCommand.getPayload(WriteAttributeCommand.java:68)
        at it.cnr.isti.zigbee.zcl.library.impl.core.ZCLFrame.<init>(ZCLFrame.java:52)
        at it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl.doClusterWideWrite(AttributeImpl.java:188)
        at it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl.setValue(AttributeImpl.java:109)
        at org.persona.zigbee.tester.gui.AttributeActionPanel$1.actionPerformed(AttributeActionPanel.java:112)

Related issues

related to Bug #129: Attributes of Basic Cluster Closed 10/17/2012

Associated revisions

Revision 520
Added by Stefano Lenzi about 6 years ago

Added support for Octet string, Long octet string, Long character string data types
Fixed serialization of Character string ( refs 132 )
Added test JUnit for WriteAttributeCommand that checks the getPayload()


#1 Updated by Stefano Lenzi about 6 years ago

  • Status changed from In Progress to Feedback

It should be working.
Han can you check if setting "garage" result in "garage" or "egarag" ?

#2 Updated by Han Alink about 6 years ago

It is possible to write the "location description" now. "garage" results in "garage".

#3 Updated by Stefano Lenzi about 6 years ago

  • Status changed from Feedback to Closed

I'm happy that it works :)

I'm closing the ticket

Also available in: Atom PDF