nl :: Dệt :: Hồ sơ :: Nhịp tim:: WeaveHeartbeatReceiver
#include <src/lib/profiles/heartbeat/WeaveHeartbeat.h>
Weave Heartbeat Receiver lớp.
Tóm lược
Di sản
Inherits từ: nl :: Weave :: WeaveServerBase Các loại công khai |
---|
OnHeartbeatReceivedHandler )(const WeaveMessageInfo *aMsgInfo, uint8_t nodeState, WEAVE_ERROR err) | typedef void(* |
Các loại công khai
OnHeartbeatRenitionHandler
void(* OnHeartbeatReceivedHandler)(const WeaveMessageInfo *aMsgInfo, uint8_t nodeState, WEAVE_ERROR err)
Thuộc tính công khai
OnHeartbeatReceive
OnHeartbeatReceivedHandler OnHeartbeatReceived
Chức năng công cộng
Trong đó
WEAVE_ERROR Init(
WeaveExchangeManager *exchangeMgr
)
Khởi tạo Weave Heartbeat Receiver và đăng ký để nhận Weave Heartbeat tin nhắn.
Chi tiết | Thông số | [in] exchangeMgr | Một con trỏ đến hệ thống Weave Exchange Manager. |
|
Giá trị trả lại | WEAVE_ERROR_INCORRECT_STATE | Nếu người quản lý trao đổi không rỗng | WEAVE_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS | Nếu quá nhiều trình xử lý tin nhắn đã được đăng ký. | WEAVE_NO_ERROR | Về thành công. |
|
Tắt
WEAVE_ERROR Shutdown(
void
)
Shutdown Weave Heartbeat Receiver và unregister việc tiếp nhận Weave Heartbeat tin nhắn.
Chi tiết | Giá trị trả lại | WEAVE_NO_ERROR | Về thành công. |
|
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":"Thiếu thông tin tôi cần"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Quá phức tạp/quá nhiều bước"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Đã lỗi thời"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Vấn đề về bản dịch"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Vấn đề về mẫu/mã"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Khác"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Dễ hiểu"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Giúp tôi giải quyết được vấn đề"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Khác"
}]