From 24e4bac203adec160a7f33639a0dfdb69f72b159 Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 31 Jan 2024 23:30:58 +0000 Subject: [PATCH] add client --- examples/solar-monitoring.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/solar-monitoring.py b/examples/solar-monitoring.py index e370e1e..e177927 100644 --- a/examples/solar-monitoring.py +++ b/examples/solar-monitoring.py @@ -63,13 +63,13 @@ def subscribe(client: mqtt_client, topic): def run(): client = connect_mqtt() - house_battery_soc = subscribe(topic_house_battery_soc) - house_battery_power = subscribe(topic_house_battery_power) - power_import_export = subscribe(topic_power_import_export) - pv_power = subscribe(topic_pv_power) - house_power = subscribe(topic_house_power) - car_soc = subscribe(topic_car_soc) - charge_point_power = subscribe(topic_charge_point_power) + house_battery_soc = subscribe(client, topic_house_battery_soc) + house_battery_power = subscribe(client, topic_house_battery_power) + power_import_export = subscribe(client, topic_power_import_export) + pv_power = subscribe(client, topic_pv_power) + house_power = subscribe(client, topic_house_power) + car_soc = subscribe(client, topic_car_soc) + charge_point_power = subscribe(client, topic_charge_point_power) logging.info("epd2in13b_V3 Demo")