Skip to content

Commit c3036f5

Browse files
committed
delay between sections
1 parent 1c4af86 commit c3036f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

renogybt/BaseClient.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from threading import Timer
33
import logging
44
import configparser
5+
import time
56
from .Utils import bytes_to_int, int_to_bytes, crc16_modbus
67
from .BLE import DeviceManager, Device
78

@@ -71,6 +72,7 @@ def on_data_received(self, response):
7172
self.data = {}
7273
else:
7374
self.section_index += 1
75+
time.sleep(0.5)
7476
self.read_section()
7577
else:
7678
logging.warn("on_data_received: unknown operation={}".format(operation))

0 commit comments

Comments
 (0)