Added concentrator script

This commit is contained in:
mj
2021-11-27 18:32:03 +01:00
parent 1de3c05fea
commit 13e1ba0ab1
6 changed files with 80 additions and 16 deletions

View File

@@ -72,7 +72,7 @@ for a in addr:
print(f'Address {a : >3} baud {b : >6}: ', end='')
try:
s = Sensor(address=a, baudrate=b)
reg_number = Sensor.input_register['CO2']
reg_number = Sensor.input_registers['CO2']
s.read_register(reg_number, retries=1)
print('DEVICE RESPONDED')
total_devices += 1