File tree 1 file changed +10
-0
lines changed
src/darwin/Framework/CHIP
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ - (void)_deviceInternalStateChanged:(MTRDevice *)device;
118
118
void ResetResubscriptionBackoff () { mResubscriptionNumRetries = 0 ; }
119
119
120
120
private:
121
+ void OnSubscriptionEstablished (chip::SubscriptionId aSubscriptionId) override ;
122
+
121
123
void OnEventData (const EventHeader & aEventHeader, TLV::TLVReader * apData, const StatusIB * apStatus) override ;
122
124
123
125
void OnAttributeData (const ConcreteDataAttributePath & aPath, TLV::TLVReader * apData, const StatusIB & aStatus) override ;
@@ -4770,6 +4772,14 @@ + (MTRDevice *)deviceWithNodeID:(uint64_t)nodeID deviceController:(MTRDeviceCont
4770
4772
4771
4773
#pragma mark - SubscriptionCallback
4772
4774
namespace {
4775
+ void SubscriptionCallback::OnSubscriptionEstablished (SubscriptionId aSubscriptionId)
4776
+ {
4777
+ // The next time we need to do a resubscribe, we should start a new backoff
4778
+ // sequence.
4779
+ ResetResubscriptionBackoff ();
4780
+ MTRBaseSubscriptionCallback::OnSubscriptionEstablished (aSubscriptionId);
4781
+ }
4782
+
4773
4783
void SubscriptionCallback::OnEventData (const EventHeader & aEventHeader, TLV::TLVReader * apData, const StatusIB * apStatus)
4774
4784
{
4775
4785
if (mEventReports == nil ) {
You can’t perform that action at this time.
0 commit comments