nl::Weave::Profiles::SoftwareUpdate::WeaveImageAnnounceServer

#include <src/lib/profiles/software-update/WeaveImageAnnounceServer.h>

Server that listens for Weave image announcements.

Summary

WeaveImageAnnounce server captures incoming image announcements and notifies its delegate when one has been received.

Constructors and Destructors

WeaveImageAnnounceServer(void)
Constructor.

Public functions

Init(WeaveExchangeManager *exchangeManager, IWeaveImageAnnounceServerDelegate *delegate)
Initializer.
SetDelegate(IWeaveImageAnnounceServerDelegate *delegate)
void
Delegate setter.

Public functions

Init

WEAVE_ERROR Init(
  WeaveExchangeManager *exchangeManager,
  IWeaveImageAnnounceServerDelegate *delegate
)

Initializer.

Initializer function where server registers to receive Image Announce messages.

Details
Parameters
exchangeManager
initialized WeaveExchangeManager with which server registers to receive Image Announce messages, must not be null
delegate
delegate, may be null
Returns
WEAVE_NO_ERROR on success, descriptive WEAVE_ERROR value otherwise

SetDelegate

void SetDelegate(
  IWeaveImageAnnounceServerDelegate *delegate
)

Delegate setter.

WeaveImageAnnounceServer

 WeaveImageAnnounceServer(
  void
)

Constructor.