public function testReverse() { $old_zcl = ConfigureReportingCommand::construct([AttributeReportingConfigurationRecord::constructReceived(0x1234, 60), AttributeReportingConfigurationRecord::constructReported(0x4567, 0x23, 60, 10, 12)]); $old_zcl_frame = $old_zcl->getFrame(); $new = new ConfigureReportingCommand($old_zcl_frame); $this->assertEquals($old_zcl_frame, $new->getFrame()); }
public function testConstructReceived() { $record = AttributeReportingConfigurationRecord::constructReceived(0x1234, 60); $this->assertEquals("0x01 0x34 0x12 0x3c 0x00", $record->displayFrame()); }