public function setFrame($frame) { while (strlen($frame)) { $attribute_record = new AttributeReportingConfigurationStatusRecord(); $attribute_record->consumeFrame($frame); $this->addAttributeReportingConfigurationStatusRecord($attribute_record); } }
/** * @expectedException \Munisense\Zigbee\Exception\ZigbeeException */ public function testGetAttributeReportingConfigurationRecord_Failure() { $record = AttributeReportingConfigurationStatusRecord::constructWithError(ZCLStatus::UNREPORTABLE_ATTRIBUTE, AttributeRecord::DIRECTION_SERVER_TO_CLIENT, 0x12); // Should throw an exception $record->getAttributeReportingConfigurationRecord(); }