-
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This separates the SetGatewaySubscription from the actual MQTT (un)subscribe. When SetGatewaySubscription is called multiple times for the same gateway while the MQTT client is disconnected, `gateways` will always have the desired state of gateway for which a subscription must exist. A separate handles handles the MQTT (un)subscribe and stores this state into `gatewaysSubscribed`. Previously when disconnected, the SetGatewaySubscription in case the MQTT client was disconnected. When SetGatewaySubscription was called multiple times for the same gateway to unsubscribe and subscribe, there was a risk that it was not executed in the correct order, leaving the gateway disconnected. Closes #183.
- Loading branch information
Showing
1 changed file
with
88 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters