|
deCONZ C++ API v2.6.1
|
APSDE-DATA.request primitive. More...
#include <aps.h>
Public Member Functions | |
| ApsDataRequest () | |
| Constructor. | |
| ApsDataRequest (const ApsDataRequest &other) | |
| Copy constructor. | |
| ApsDataRequest (ApsDataRequest &&other) noexcept | |
| Move constructor. | |
| ApsDataRequest & | operator= (const ApsDataRequest &other) |
| Copy assignment operator. | |
| ApsDataRequest & | operator= (ApsDataRequest &&other) noexcept |
| Move assignment operator. | |
| ~ApsDataRequest () | |
| Deconstructor. | |
| uint8_t | id () const |
| Returns the uniqe id for this request. | |
| Address & | dstAddress () |
| Returns the modifiable destination address. | |
| const Address & | dstAddress () const |
| Returns the const destination address. | |
| deCONZ::ApsAddressMode | dstAddressMode () const |
| Returns the destination address mode. | |
| void | setDstAddressMode (ApsAddressMode mode) |
| Sets the destination address mode. | |
| uint8_t | srcEndpoint () const |
| Returns the source endpoint. | |
| void | setSrcEndpoint (uint8_t ep) |
| Sets the source endpoint. | |
| uint8_t | dstEndpoint () const |
| Returns the destination endpoint. | |
| void | setDstEndpoint (uint8_t ep) |
| Sets the destination endpoint. | |
| 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. | |
| uint16_t | responseClusterId () const |
| Returns the response cluster identifier. | |
| void | setResponseClusterId (uint16_t clusterId) |
| Sets the response cluster identifier. | |
| 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. | |
| uint8_t | radius () const |
| Returns the send radius. | |
| void | setRadius (uint8_t radius) |
| Sets the send radius. | |
| ApsTxOptions | txOptions () const |
| Returns the transmit options. | |
| void | setTxOptions (ApsTxOptions txOptions) |
| Sets the transmit options. | |
| int | writeToStream (QDataStream &stream) const |
| Writes the request to the stream in a ZigBee standard conform format. | |
| void | readFromStream (QDataStream &stream) |
| Reads a request from the stream which must be in a ZigBee standard conform format. | |
| void | clear () |
| Resets the request parameters. | |
APSDE-DATA.request primitive.
The ApsDataRequest class can be used so send arbitrary messages via ZigBee APS layer.
The destination can be a single node (unicast) or a group of nodes (groupcast, broadcast).
The following code creates and sends a ZigBee Device Profile (ZDP) Match Descriptor Request via broadcast
to search the network for ZigBee Light Link (ZLL) devices like Philips Hue which provide a OnOff cluster.
| uint8_t deCONZ::ApsDataRequest::id | ( | ) | const |
Returns the uniqe id for this request.
The id is set in the constructor. It allows to match a ApsDataConfirm to the request.
| void deCONZ::ApsDataRequest::readFromStream | ( | QDataStream & | stream | ) |
Reads a request from the stream which must be in a ZigBee standard conform format.
| void deCONZ::ApsDataRequest::setRadius | ( | uint8_t | radius | ) |
Sets the send radius.
A value of 0 means the stack will use the default value.
| void deCONZ::ApsDataRequest::setTxOptions | ( | ApsTxOptions | txOptions | ) |
Sets the transmit options.
| txOptions | a logical OR combined value of deCONZ::ApsTxOption flags |
| ApsTxOptions deCONZ::ApsDataRequest::txOptions | ( | ) | const |
Returns the transmit options.
| int deCONZ::ApsDataRequest::writeToStream | ( | QDataStream & | stream | ) | const |
Writes the request to the stream in a ZigBee standard conform format.