|
deCONZ C++ API v2.6.1
|
Provides services to access interpan and touchlink functionality. More...
#include <touchlink_controller.h>
Inherits QObject.
Signals | |
| void | startInterpanModeConfirm (TouchlinkStatus status) |
| Is emitted after starting interpan mode request is processed. | |
| void | sendInterpanConfirm (TouchlinkStatus status) |
| Is emitted after send interpan request is processed. | |
| void | interpanIndication (const QByteArray &ind) |
| Is emitted on the reception of a interpan frame. | |
Public Member Functions | |
| TouchlinkController (QObject *parent) | |
| Constructor. | |
| virtual | ~TouchlinkController () |
| Deconstructor. | |
| virtual int | startInterpanMode (uint8_t channel)=0 |
| Start interpan networking. | |
| virtual int | sendInterpanRequest (const TouchlinkRequest &req)=0 |
| Sends a interpan request. | |
| uint32_t | generateTransactionId () const |
| Generates a new random transaction identifier. | |
Static Public Member Functions | |
| static TouchlinkController * | instance () |
| Get the singleton instance of the TouchlinkController. | |
Provides services to access interpan and touchlink functionality.
| uint32_t deCONZ::TouchlinkController::generateTransactionId | ( | ) | const |
Generates a new random transaction identifier.
|
signal |
Is emitted on the reception of a interpan frame.
| ind | hold the raw interpan indication frame in the following format // all fields are little endian
uint16_t srcPanId
uint64_t srcAddress
uint16_t dstPanId
uint8_t dstAddressMode
uint64_t dstExtAddress // (if dstAddressmode is 0x03)
uint16_t dstShortAddress // (if dstAddressmode is not 0x03)
uint16_t profileId
uint16_t clusterId
uint8_t asduLength
uint8_t asdu[asduLength]
|
|
signal |
Is emitted after send interpan request is processed.
| status | the result of the request |
|
pure virtual |
Sends a interpan request.
| req | the request parameters |
| 0 | if the request will be processed |
| -1 | then the request could not be done |
|
pure virtual |
Start interpan networking.
Interpan networking is only possible then the network state is NotInNetwork.
| channel | the channel to tune in (11-26) |
| 0 | if the request will be processed |
| -1 | then the request could not be done |
| -2 | then the network state is not NotInNetwork |
| -3 | if channel is not valid (11-26) |
|
signal |
Is emitted after starting interpan mode request is processed.
| status | the result of the request |