コード例 #1
0
 public function setUp()
 {
     $this->zcl_str = chr(0x2) . chr(0x1) . chr(0xc0) . chr(0x8) . chr(0x4) . chr(0x0) . chr(0x22) . chr(0x28) . chr(0x23) . chr(0x0);
     $this->zcl_read_attribute_status_record_0 = ReadAttributesStatusRecord::constructFailure(0x102, ZCLStatus::HARDWARE_FAILURE);
     $this->zcl_read_attribute_status_record_1 = ReadAttributesStatusRecord::constructSuccess(0x408, 0x22, 9000);
     $this->zcl_frame = ReadAttributesResponseCommand::construct([$this->zcl_read_attribute_status_record_0, $this->zcl_read_attribute_status_record_1]);
 }