ZCL library  4.3
ZCL library to manage a Zigbee network
ZCLPayload Class Reference

This Class defines the payload of a ZCL frame. More...

#include <ZCLPayload.h>

Inheritance diagram for ZCLPayload:
ClusterSpecificCommandPayload ConfigureReportingPayload ConfigureReportingResponsePayload DefaultResponsePayload DiscoverAttributesPayload DiscoverAttributesResponsePayload ReadAttributesPayload ReadAttributesResponsePayload ReadReportingConfigurationPayload ReadReportingConfigurationResponsePayload ReportAttributesPayload WriteAttributesPayload WriteAttributesResponsePayload

List of all members.

Public Member Functions

 ZCLPayload (ZCLFrame *frame)
 Constructor.
bool isDiscoverAttributesCommand () const
 Return true if the payload is a Discover Attributes command.
const DiscoverAttributesPayloadgetDiscoverAttributesPayload () const
 Get the payload as a Discover Attributes command.
bool isDiscoverAttributesResponse () const
 Return true if the payload is a Discover Attributes response.
const
DiscoverAttributesResponsePayload
getDiscoverAttributesResponsePayload () const
 Get the payload as a Discover Attributes response.
bool isReadAttributesCommand () const
 Return true if the payload is a Read Attributes command.
const ReadAttributesPayloadgetReadAttributesPayload () const
 Get the payload as a Read Attributes command.
bool isReadAttributesResponse () const
 Return true if the payload is a Read Attributes response.
const
ReadAttributesResponsePayload
getReadAttributesResponsePayload () const
 Get the payload as a Read Attributes response.
bool isWriteAttributesCommand () const
 Return true if the payload is a Write Attributes command.
const WriteAttributesPayloadgetWriteAttributesPayload () const
 Get the payload as a Write Attributes command.
bool isWriteAttributesResponse () const
 Return true if the payload is a Write Attributes response.
const
WriteAttributesResponsePayload
getWriteAttributesResponsePayload () const
 Get the payload as a Write Attributes response.
bool isReadReportingConfigurationCommand () const
 Return true if the payload is a Read Reporting Configuration command.
const
ReadReportingConfigurationPayload
getReadReportingConfigurationPayload () const
 Get the payload as a Read Reporting Configuration command.
bool isReadReportingConfigurationResponse () const
 Return true if the payload is a Read Reporting Configuration response.
const
ReadReportingConfigurationResponsePayload
getReadReportingConfigurationResponsePayload () const
 Get the payload as a Read Reporting Configuration response.
bool isConfigureReportingCommand () const
 Return true if the payload is a Configure Reporting command.
const ConfigureReportingPayloadgetConfigureReportingPayload () const
 Get the payload as a Configure Reporting command.
bool isConfigureReportingResponse () const
 Return true if the payload is a Configure Reporting response.
const
ConfigureReportingResponsePayload
getConfigureReportingResponsePayload () const
 Get the payload as a Configure Reporting response.
bool isClusterSpecificCommand () const
 Return true if the payload is a Cluster Specific command.
const
ClusterSpecificCommandPayload
getClusterSpecificCommandPayload () const
 Get the payload as a Cluster Specific command.
bool isReportAttributesCommand () const
 Return true if the payload is a Report Attributes command.
const ReportAttributesPayloadgetReportAttributesPayload () const
 Get the payload as a Report Attributes command.
bool isDefaultResponse () const
 Return true if the payload is a Default response.
const DefaultResponsePayloadgetDefaultResponsePayload () const
 Get the payload as a Default response.
virtual const byte * toBytes (int &size)=0
 Return the ZCL payload as array of bytes.
virtual bool fromBytes (const byte payload[], int length)=0
 Build a ZCl payload from an array of bytes.

Friends

class ZCLFrame

Detailed Description

This Class defines the payload of a ZCL frame.


Constructor & Destructor Documentation

ZCLPayload::ZCLPayload ( ZCLFrame frame)

Constructor.

Parameters:
framethe frame containing this payload.

Member Function Documentation

virtual bool ZCLPayload::fromBytes ( const byte  payload[],
int  length 
) [pure virtual]
const ClusterSpecificCommandPayload* ZCLPayload::getClusterSpecificCommandPayload ( ) const

Get the payload as a Cluster Specific command.

Returns:
the Specific Cluster payload.
const ConfigureReportingPayload* ZCLPayload::getConfigureReportingPayload ( ) const

Get the payload as a Configure Reporting command.

Returns:
the Configure Reporting command payload.
const ConfigureReportingResponsePayload* ZCLPayload::getConfigureReportingResponsePayload ( ) const

Get the payload as a Configure Reporting response.

Returns:
the Configure Reporting response payload.
const DefaultResponsePayload* ZCLPayload::getDefaultResponsePayload ( ) const

Get the payload as a Default response.

Returns:
the Report Default response payload.
const DiscoverAttributesPayload* ZCLPayload::getDiscoverAttributesPayload ( ) const

Get the payload as a Discover Attributes command.

Returns:
the Discover Attributes command payload.
const DiscoverAttributesResponsePayload* ZCLPayload::getDiscoverAttributesResponsePayload ( ) const

Get the payload as a Discover Attributes response.

Returns:
the Discover Attributes response payload.
const ReadAttributesPayload* ZCLPayload::getReadAttributesPayload ( ) const

Get the payload as a Read Attributes command.

Returns:
the Read Attributes command payload.
const ReadAttributesResponsePayload* ZCLPayload::getReadAttributesResponsePayload ( ) const

Get the payload as a Read Attributes response.

Returns:
the Read Attributes response payload.
const ReadReportingConfigurationPayload* ZCLPayload::getReadReportingConfigurationPayload ( ) const

Get the payload as a Read Reporting Configuration command.

Returns:
the Read Reporting Configuration command payload.
const ReadReportingConfigurationResponsePayload* ZCLPayload::getReadReportingConfigurationResponsePayload ( ) const

Get the payload as a Read Reporting Configuration response.

Returns:
the Read Reporting Configuration response payload.
const ReportAttributesPayload* ZCLPayload::getReportAttributesPayload ( ) const

Get the payload as a Report Attributes command.

Returns:
the Report Attributes command payload.
const WriteAttributesPayload* ZCLPayload::getWriteAttributesPayload ( ) const

Get the payload as a Write Attributes command.

Returns:
the Write Attributes payload.
const WriteAttributesResponsePayload* ZCLPayload::getWriteAttributesResponsePayload ( ) const

Get the payload as a Write Attributes response.

Returns:
the Write Attributes response payload.
bool ZCLPayload::isClusterSpecificCommand ( ) const

Return true if the payload is a Cluster Specific command.

Returns:
true if the payload is a Cluster Specific command.
bool ZCLPayload::isConfigureReportingCommand ( ) const

Return true if the payload is a Configure Reporting command.

Returns:
true if the payload is a Configure Reporting command.
bool ZCLPayload::isConfigureReportingResponse ( ) const

Return true if the payload is a Configure Reporting response.

Returns:
true if the payload is a Configure Reporting response.
bool ZCLPayload::isDefaultResponse ( ) const

Return true if the payload is a Default response.

Returns:
true if the payload is a Default response.
bool ZCLPayload::isDiscoverAttributesCommand ( ) const

Return true if the payload is a Discover Attributes command.

Returns:
true if the payload is a Discover Attributes command.
bool ZCLPayload::isDiscoverAttributesResponse ( ) const

Return true if the payload is a Discover Attributes response.

Returns:
true if the payload is a Discover Attributes response.
bool ZCLPayload::isReadAttributesCommand ( ) const

Return true if the payload is a Read Attributes command.

Returns:
true if the payload is a Read Attributes command.
bool ZCLPayload::isReadAttributesResponse ( ) const

Return true if the payload is a Read Attributes response.

Returns:
true if the payload is a Read Attributes response.
bool ZCLPayload::isReadReportingConfigurationCommand ( ) const

Return true if the payload is a Read Reporting Configuration command.

Returns:
true if the payload is a Read Reporting Configuration command.
bool ZCLPayload::isReadReportingConfigurationResponse ( ) const

Return true if the payload is a Read Reporting Configuration response.

Returns:
true if the payload is a Read Reporting Configuration response.
bool ZCLPayload::isReportAttributesCommand ( ) const

Return true if the payload is a Report Attributes command.

Returns:
true if the payload is a Report Attributes command.
bool ZCLPayload::isWriteAttributesCommand ( ) const

Return true if the payload is a Write Attributes command.

Returns:
true if the payload is a Write Attributes command.
bool ZCLPayload::isWriteAttributesResponse ( ) const

Return true if the payload is a Write Attributes response.

Returns:
true if the payload is a Write Attributes response.

The documentation for this class was generated from the following file: