Google is committed to advancing racial equity for Black communities.
See how.
Stay organized with collections
Save and categorize content based on your preferences.
nl::Weave::Profiles::Heartbeat::WeaveHeartbeatReceiver
#include <src/lib/profiles/heartbeat/WeaveHeartbeat.h>
Weave Heartbeat Receiver class.
Summary
Inheritance
Inherits from:
nl::Weave::WeaveServerBase
Public types
OnHeartbeatReceivedHandler
void(* OnHeartbeatReceivedHandler)(const WeaveMessageInfo *aMsgInfo, uint8_t nodeState, WEAVE_ERROR err)
Public attributes
OnHeartbeatReceived
OnHeartbeatReceivedHandler OnHeartbeatReceived
Public functions
Init
WEAVE_ERROR Init(
WeaveExchangeManager *exchangeMgr
)
Initialize the Weave Heartbeat Receiver and register to receive Weave Heartbeat messages.
Details |
Parameters |
[in] exchangeMgr
|
A pointer to the system Weave Exchange Manager.
|
|
Return Values |
WEAVE_ERROR_INCORRECT_STATE
|
If exchange manager is not null
|
WEAVE_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS
|
If too many message handlers have already been registered.
|
WEAVE_NO_ERROR
|
On success.
|
|
Shutdown
WEAVE_ERROR Shutdown(
void
)
Shutdown the Weave Heartbeat Receiver and unregister the reception of Weave Heartbeat messages.
Details |
Return Values |
WEAVE_NO_ERROR
|
On success.
|
|
WeaveHeartbeatReceiver
WeaveHeartbeatReceiver(
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. Thread is a registered trademark of the Thread Group, Inc.
Last updated 2018-06-05 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]