Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
PresenceHandler::PresenceRecord Struct Reference
Collaboration diagram for PresenceHandler::PresenceRecord:

Public Member Functions

 PresenceRecord (ProfileLocation profileLocation={}, uint8_t timeoutSeconds=PRESENCE_TIMEOUT_SECONDS, uint8_t meshThrottleSeconds=0)
 
void invalidate ()
 
bool isValid ()
 
ProfileLocation id ()
 

Public Attributes

ProfileLocation profileLocation
 
uint8_t timeoutCountdownSeconds
 Used to determine when a record is timed out. More...
 
uint8_t meshSendCountdownSeconds
 Used to determine whether to send a mesh message. More...
 

Constructor & Destructor Documentation

◆ PresenceRecord()

PresenceHandler::PresenceRecord::PresenceRecord ( ProfileLocation  profileLocation = {},
uint8_t  timeoutSeconds = PRESENCE_TIMEOUT_SECONDS,
uint8_t  meshThrottleSeconds = 0 
)
inline

Member Function Documentation

◆ id()

ProfileLocation PresenceHandler::PresenceRecord::id ( )
inline

◆ invalidate()

void PresenceHandler::PresenceRecord::invalidate ( )
inline

◆ isValid()

bool PresenceHandler::PresenceRecord::isValid ( )
inline

Member Data Documentation

◆ meshSendCountdownSeconds

uint8_t PresenceHandler::PresenceRecord::meshSendCountdownSeconds

Used to determine whether to send a mesh message.

Decreases every seconds. Starts at presence_mesh_send_throttle_seconds, when 0, a mesh message can be sent.

◆ profileLocation

ProfileLocation PresenceHandler::PresenceRecord::profileLocation

◆ timeoutCountdownSeconds

uint8_t PresenceHandler::PresenceRecord::timeoutCountdownSeconds

Used to determine when a record is timed out.

Decreases every seconds. Starts at presence_time_out_s, when 0, it is timed out.


The documentation for this struct was generated from the following file: