ProsecCoAP 🥂
 
Loading...
Searching...
No Matches
Observer Class Reference

#include <ProsecCoAP.h>

Public Member Functions

bool remove ()
 
unsigned long getLastSeenMs ()
 Get the last seen time in milliseconds.
 

Friends

class Coap
 

Detailed Description

Represents a CoAP observer.

Member Function Documentation

◆ getLastSeenMs()

unsigned long Observer::getLastSeenMs ( )

Get the last seen time in milliseconds.

Note that this value may wrap around after a long uptime.

◆ remove()

bool Observer::remove ( )

Remove the observer from the list of active observers.

An observer can only be added from the Coap class (Coap::addObserver). An observer can be removed either by the Coap class (Coap::removeObserver) or by itself (Observer::remove).

Returns
true if the observer was removed successfully, false if the observer was already inactive.

Friends And Related Symbol Documentation

◆ Coap

friend class Coap
friend

The documentation for this class was generated from the following files: