Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
asset_record_t Struct Reference

#include <cs_AssetRecord.h>

Collaboration diagram for asset_record_t:

Public Member Functions

void invalidate ()
 Invalidate this record. More...
 
bool isValid ()
 Returns whether this record is valid. More...
 
asset_id_t id ()
 
void empty ()
 
bool isThrottled ()
 
void setThrottlingCountdown (uint8_t ticks)
 
void addThrottlingCountdown (uint8_t ticks)
 

Public Attributes

asset_id_t assetId
 ID of the asset, unique field. More...
 
rssi_and_channel_t myRssi
 Most recent RSSI value observed by this Crownstone. More...
 
uint8_t lastReceivedCounter = 0xFF
 Set to 0 each time this asset is scanned. More...
 
uint8_t throttlingCountdown = 0
 When not 0, no mesh message should be sent for this asset. More...
 

Member Function Documentation

◆ addThrottlingCountdown()

void asset_record_t::addThrottlingCountdown ( uint8_t  ticks)
inline

◆ empty()

void asset_record_t::empty ( )
inline

◆ id()

asset_id_t asset_record_t::id ( )
inline

◆ invalidate()

void asset_record_t::invalidate ( )
inline

Invalidate this record.

◆ isThrottled()

bool asset_record_t::isThrottled ( )
inline

◆ isValid()

bool asset_record_t::isValid ( )
inline

Returns whether this record is valid.

◆ setThrottlingCountdown()

void asset_record_t::setThrottlingCountdown ( uint8_t  ticks)
inline

Member Data Documentation

◆ assetId

asset_id_t asset_record_t::assetId

ID of the asset, unique field.

◆ lastReceivedCounter

uint8_t asset_record_t::lastReceivedCounter = 0xFF

Set to 0 each time this asset is scanned.

Increment at regular interval.

Value of 0xFF marks the record invalid.

◆ myRssi

rssi_and_channel_t asset_record_t::myRssi

Most recent RSSI value observed by this Crownstone.

◆ throttlingCountdown

uint8_t asset_record_t::throttlingCountdown = 0

When not 0, no mesh message should be sent for this asset.

Decrement at regular interval.


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