29 uint8_t lastReceivedCounter = 0xFF;
35 uint8_t throttlingCountdown = 0;
37#if BUILD_CLOSEST_CROWNSTONE_TRACKER == 1
57 lastReceivedCounter = 0xFF;
64 return lastReceivedCounter != 0xFF;
74 lastReceivedCounter = 0;
75 throttlingCountdown = 0;
76#if BUILD_CLOSEST_CROWNSTONE_TRACKER == 1
82 return throttlingCountdown != 0;
87 throttlingCountdown = 0xff - 1;
90 throttlingCountdown = ticks;
95 auto val = uint16_t(throttlingCountdown) + ticks;
96 setThrottlingCountdown(val);
uint8_t stone_id_t
Definition: cs_Typedefs.h:23
Definition: cs_AssetFilterPackets.h:93
Definition: cs_AssetRecord.h:12
bool isThrottled()
Definition: cs_AssetRecord.h:81
void addThrottlingCountdown(uint8_t ticks)
Definition: cs_AssetRecord.h:94
bool isValid()
Returns whether this record is valid.
Definition: cs_AssetRecord.h:63
asset_id_t assetId
ID of the asset, unique field.
Definition: cs_AssetRecord.h:16
rssi_and_channel_t myRssi
Most recent RSSI value observed by this Crownstone.
Definition: cs_AssetRecord.h:21
void setThrottlingCountdown(uint8_t ticks)
Definition: cs_AssetRecord.h:85
asset_id_t id()
Definition: cs_AssetRecord.h:67
void invalidate()
Invalidate this record.
Definition: cs_AssetRecord.h:56
void empty()
Definition: cs_AssetRecord.h:73
Definition: cs_RssiAndChannel.h:63