Skip to content

Commit

Permalink
Document mHoldSync and mHoldReport
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed Jan 11, 2022
1 parent 56ddde0 commit 6e6c5e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/ReadHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ class ReadHandler : public Messaging::ExchangeDelegate
uint16_t mMinIntervalFloorSeconds = 0;
uint16_t mMaxIntervalCeilingSeconds = 0;
SessionHolder mSessionHandle;
// only for subscription, mHoldReport is set to true on report delivery within min interval, and then allow to send report after
// min interval. if there is urgent event delivery, mHoldReport is also set as false.
bool mHoldReport = false;
bool mDirty = false;
bool mActiveSubscription = false;
Expand All @@ -226,8 +228,9 @@ class ReadHandler : public Messaging::ExchangeDelegate
NodeId mInitiatorNodeId = kUndefinedNodeId;
AttributePathExpandIterator mAttributePathExpandIterator = AttributePathExpandIterator(nullptr);
bool mIsFabricFiltered = false;
bool mHoldSync = false;
uint32_t mLastWrittenEventsBytes = 0;
// only for subscription, mHoldSync means empty sync report can be generated after max interval,
bool mHoldSync = false;
uint32_t mLastWrittenEventsBytes = 0;
SubjectDescriptor mSubjectDescriptor;
// The detailed encoding state for a single attribute, used by list chunking feature.
AttributeValueEncoder::AttributeEncodeState mAttributeEncoderState;
Expand Down

0 comments on commit 6e6c5e0

Please sign in to comment.