Send feedback
Stay organized with collections
Save and categorize content based on your preferences.
nl:: Weave:: Profiles:: DeviceControl:: DeviceControlServer
#include <src/lib/profiles/device-control/DeviceControl.h>
Server class for implementing the Device Control profile.
Summary
Inheritance
Inherits from:
nl::Weave::WeaveServerBase
Direct Known Subclasses:
nl::Weave::DeviceLayer::Internal::DeviceControlServer
Protected attributes
mFailSafeArmed
bool mFailSafeArmed
mFailSafeToken
uint32_t mFailSafeToken
mRemotePassiveRendezvousClientCon
WeaveConnection * mRemotePassiveRendezvousClientCon
mRemotePassiveRendezvousEncryptionType
uint8_t mRemotePassiveRendezvousEncryptionType
mRemotePassiveRendezvousJoinerAddr
IPAddress mRemotePassiveRendezvousJoinerAddr
mRemotePassiveRendezvousJoinerCon
WeaveConnection * mRemotePassiveRendezvousJoinerCon
mRemotePassiveRendezvousKeyId
uint16_t mRemotePassiveRendezvousKeyId
mRemotePassiveRendezvousTimeout
uint16_t mRemotePassiveRendezvousTimeout
mResetFlags
uint16_t mResetFlags
mTunnelInactivityTimeout
uint16_t mTunnelInactivityTimeout
Public functions
DeviceControlServer
DeviceControlServer(
void
)
Init
WEAVE_ERROR Init(
WeaveExchangeManager *exchangeMgr
)
Initialize the Device Control Server state and register to receive Device Control messages.
Details
Parameters
[in] exchangeMgr
A pointer to the Weave Exchange Manager.
Return Values
WEAVE_ERROR_INCORRECT_STATE
When a remote passive rendezvous server has already been registered.
WEAVE_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS
When too many unsolicited message handlers are registered.
WEAVE_NO_ERROR
On success.
IsRemotePassiveRendezvousInProgress
bool IsRemotePassiveRendezvousInProgress (
void
) const
Return Remote Passive Rendezvous state.
Details
Return Values
TRUE
if Remote Passive Rendezvous in progress.
FALSE
if Remote Passive Rendezvous is not in progress.
SendStatusReport
virtual WEAVE_ERROR SendStatusReport(
uint32_t statusProfileId,
uint16_t statusCode,
WEAVE_ERROR sysError
)
Send a status report response to a request.
Details
Parameters
[in] statusProfileId
The Weave profile ID this status report pertains to.
[in] statusCode
The status code to be included in this response.
[in] sysError
The system error code to be included in this response.
Return Values
WEAVE_ERROR_INCORRECT_STATE
If there is no request being processed.
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the status report from sending.
SendSuccessResponse
virtual WEAVE_ERROR SendSuccessResponse(
void
)
Send a success response to a Device Control request.
Details
Return Values
WEAVE_ERROR_INCORRECT_STATE
If there is no request being processed.
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the success response from sending.
SetDelegate
void SetDelegate(
DeviceControlDelegate *delegate
)
Set the delegate to process Device Control Server events.
Details
Parameters
[in] delegate
A pointer to the Device Control Delegate.
Shutdown
WEAVE_ERROR Shutdown(
void
)
Shutdown the Device Control Server.
Details
Return Values
WEAVE_NO_ERROR
unconditionally.
SystemTestTimeout
void SystemTestTimeout(
void
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. The OPENTHREAD and related marks are trademarks of the Thread Group and are used under license.
Last updated 2019-09-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-09-14 UTC."],[],[]]