deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
deCONZ::TouchlinkRequest Class Reference

Base class for all touchlink requests. More...

#include <touchlink.h>

Public Member Functions

 TouchlinkRequest ()
 Constructor.
 
 TouchlinkRequest (const TouchlinkRequest &other)
 Copy constructor.
 
TouchlinkRequestoperator= (const TouchlinkRequest &other)
 Copy assignment operator.
 
 ~TouchlinkRequest ()
 Deconstructor.
 
AddressdstAddress ()
 Returns the modifiable destination address.
 
const AddressdstAddress () const
 Returns the const destination address.
 
ApsAddressMode dstAddressMode () const
 Returns the destination address mode.
 
void setDstAddressMode (ApsAddressMode mode)
 Sets the destination address mode.
 
uint8_t channel () const
 Returns the logical channel.
 
void setChannel (uint8_t channel)
 Sets the logical channel.
 
uint16_t panId () const
 Returns the PANID.
 
void setPanId (uint16_t panId)
 Sets the PANID.
 
uint16_t profileId () const
 Returns the profile identifier.
 
void setProfileId (uint16_t profileId)
 Sets the profile identifier.
 
uint16_t clusterId () const
 Returns the cluster identifier.
 
void setClusterId (uint16_t clusterId)
 Sets the cluster identifier.
 
bool writeToStream (QDataStream &stream) const
 Writes the request to the stream.
 
const QByteArray & asdu () const
 Returns the const ASDU payload.
 
QByteArray & asdu ()
 Returns the writeable ASDU payload.
 
void setAsdu (const QByteArray &asdu)
 Sets the ASDU payload.
 

Detailed Description

Base class for all touchlink requests.

Member Function Documentation

◆ setChannel()

void deCONZ::TouchlinkRequest::setChannel ( uint8_t  channel)

Sets the logical channel.

Parameters
channelchannel number 11-26

◆ setClusterId()

void deCONZ::TouchlinkRequest::setClusterId ( uint16_t  clusterId)

Sets the cluster identifier.

Parameters
clusterIdthe cluster identifier

◆ setDstAddressMode()

void deCONZ::TouchlinkRequest::setDstAddressMode ( ApsAddressMode  mode)

Sets the destination address mode.

Parameters
modethe address mode

◆ setPanId()

void deCONZ::TouchlinkRequest::setPanId ( uint16_t  panId)

Sets the PANID.

Parameters
panIdthe PANID

◆ setProfileId()

void deCONZ::TouchlinkRequest::setProfileId ( uint16_t  profileId)

Sets the profile identifier.

Parameters
profileIdthe profile identifier

◆ writeToStream()

bool deCONZ::TouchlinkRequest::writeToStream ( QDataStream &  stream) const

Writes the request to the stream.

// ... setup request
QByteArray arr; // buffer into which the plain request will be written
QDataStream stream(&arr, QIODevice::WriteOnly);
stream.setByteOrder(QDataStream::LittleEndian); // everything in ZigBee is little endian
// serialize request to buffer
req.writeToStream(stream);
Base class for all touchlink requests.
Definition touchlink.h:35
bool writeToStream(QDataStream &stream) const
Writes the request to the stream.
Definition touchlink.cpp:165

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