nl::Weave::Profiles::TokenPairing::TokenPairingServer
Stay organized with collections
Save and categorize content based on your preferences.
#include <src/lib/profiles/token-pairing/TokenPairing.h>
Server object for responding to Token Pairing requests.
Summary
Inheritance
Inherits from: nl::Weave::WeaveServerBase
Constructors and Destructors |
|
---|---|
TokenPairingServer(void)
|
Protected attributes |
|
---|---|
mCertificateSent
|
bool
|
mCurClientOp
|
|
mDelegate
|
Public functions |
|
---|---|
Init(WeaveExchangeManager *exchangeMgr)
|
Initialize the Token Pairing Server state and register to receive Token Pairing messages.
|
SendStatusReport(uint32_t statusProfileId, uint16_t statusCode, WEAVE_ERROR sysError)
|
virtual WEAVE_ERROR
Send a status report response to a request.
|
SendTokenCertificateResponse(PacketBuffer *certificate)
|
|
SendTokenPairedResponse(PacketBuffer *tokenBundle)
|
|
SetDelegate(TokenPairingDelegate *delegate)
|
void
Set the delegate to process Device Control Server events.
|
Shutdown(void)
|
Shutdown the Token Pairing Server.
|
Protected attributes
mCertificateSent
bool mCertificateSent
mCurClientOp
ExchangeContext * mCurClientOp
mDelegate
TokenPairingDelegate * mDelegate
Public functions
Init
WEAVE_ERROR Init( WeaveExchangeManager *exchangeMgr )
Initialize the Token Pairing Server state and register to receive Token Pairing messages.
param[in] exchangeMgr A pointer to the Weave Exchange Manager.
Details | |||||||
---|---|---|---|---|---|---|---|
Return Values |
|
SendStatusReport
virtual WEAVE_ERROR SendStatusReport( uint32_t statusProfileId, uint16_t statusCode, WEAVE_ERROR sysError )
Send a status report response to a request.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
SendTokenCertificateResponse
WEAVE_ERROR SendTokenCertificateResponse( PacketBuffer *certificate )
SendTokenPairedResponse
WEAVE_ERROR SendTokenPairedResponse( PacketBuffer *tokenBundle )
SetDelegate
void SetDelegate( TokenPairingDelegate *delegate )
Set the delegate to process Device Control Server events.
Details | |||
---|---|---|---|
Parameters |
|
Shutdown
WEAVE_ERROR Shutdown( void )
Shutdown the Token Pairing Server.
Details | |||
---|---|---|---|
Return Values |
|
TokenPairingServer
TokenPairingServer( void )