nl::Weave::Profiles::Heartbeat::WeaveHeartbeatReceiver

#include <src/lib/profiles/heartbeat/WeaveHeartbeat.h>

Class Penerima Heartbeat Weave.

Ringkasan

Inheritance

Mewarisi dari: nl::Weave::WeaveServerBase

Konstruktor dan Destruktor

WeaveHeartbeatReceiver(void)

Jenis publik

OnHeartbeatReceivedHandler)(const WeaveMessageInfo *aMsgInfo, uint8_t nodeState, WEAVE_ERROR err) typedef
void(*

Atribut publik

OnHeartbeatReceived
OnHeartbeatReceivedHandler

Fungsi publik

Init(WeaveExchangeManager *exchangeMgr)
Lakukan inisialisasi Penerima Heartbeat Weave dan daftar untuk menerima pesan Heartbeat Weave.
Shutdown(void)
Matikan Penerima Heartbeat Weave dan batalkan pendaftaran penerimaan pesan Heartbeat Weave.

Jenis publik

OnHeartbeatReceivedHandler

void(* OnHeartbeatReceivedHandler)(const WeaveMessageInfo *aMsgInfo, uint8_t nodeState, WEAVE_ERROR err)

Atribut publik

OnHeartbeatReceived

OnHeartbeatReceivedHandler OnHeartbeatReceived

Fungsi publik

Init

WEAVE_ERROR Init(
  WeaveExchangeManager *exchangeMgr
)

Lakukan inisialisasi Penerima Heartbeat Weave dan daftar untuk menerima pesan Heartbeat Weave.

Detail
Parameter
[in] exchangeMgr
Pointer ke sistem Weave Exchange Manager.
Nilai yang Ditampilkan
WEAVE_ERROR_INCORRECT_STATE
Jika exchange manager tidak null
WEAVE_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS
Jika terlalu banyak pengendali pesan yang sudah didaftarkan.
WEAVE_NO_ERROR
Berhasil.

Nonaktif

WEAVE_ERROR Shutdown(
  void
)

Matikan Penerima Heartbeat Weave dan batalkan pendaftaran penerimaan pesan Heartbeat Weave.

Detail
Nilai yang Ditampilkan
WEAVE_NO_ERROR
Berhasil.

WeaveHeartbeatReceiver

 WeaveHeartbeatReceiver(
  void
)