public function setFrame($frame)
 {
     while (strlen($frame)) {
         $write_attribute_record = new WriteAttributeRecord();
         $write_attribute_record->consumeFrame($frame);
         $this->addWriteAttributeRecord($write_attribute_record);
     }
 }
 public function setUp()
 {
     $this->zcl_str = chr(0x2) . chr(0x1) . chr(0x21) . chr(0x37) . chr(0x0) . chr(0x8) . chr(0x4) . chr(0x22) . chr(0x28) . chr(0x23) . chr(0x0);
     $this->write_attribute_record_0 = WriteAttributeRecord::construct(0x102, 0x21, 55);
     $this->write_attribute_record_1 = WriteAttributeRecord::construct(0x408, 0x22, 9000);
     $this->zcl_frame = WriteAttributesCommand::construct([$this->write_attribute_record_0, $this->write_attribute_record_1]);
 }