Skip to content

Commit 342eab7

Browse files
committed
Added rate limits for TBGatewayMqtt
1 parent 34ec611 commit 342eab7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
with open(path.join(this_directory, 'README.md')) as f:
2222
long_description = f.read()
2323

24-
VERSION = "1.8.4"
24+
VERSION = "1.8.5"
2525

2626
setup(
2727
version=VERSION,

tb_gateway_mqtt.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ class TBGatewayAPI:
3333

3434

3535
class TBGatewayMqttClient(TBDeviceMqttClient):
36-
def __init__(self, host, port=1883, username=None, password=None, gateway=None, quality_of_service=1, client_id=""):
37-
super().__init__(host, port, username, password, quality_of_service, client_id)
36+
def __init__(self, host, port=1883, username=None, password=None, gateway=None, quality_of_service=1, client_id="",
37+
rate_limit="8:1;400:60;24000:3600;"):
38+
super().__init__(host, port, username, password, quality_of_service, client_id, rate_limit)
3839
self.quality_of_service = quality_of_service
3940
self.__max_sub_id = 0
4041
self.__sub_dict = {}

0 commit comments

Comments
 (0)