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 testConstructReported() { $record = AttributeReportingConfigurationRecord::constructReported(0x1234, 0x23, 60, 10, 5); $this->assertEquals("0x00 0x34 0x12 0x23 0x3c 0x00 0x0a 0x00 0x05 0x00 0x00 0x00", $record->displayFrame()); }