From fed0c7124a846712d52644fedf636a934b0d6c59 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 28 Oct 2024 21:56:07 +0100 Subject: [PATCH] fix roken refactor --- run.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.php b/run.php index 6f8a3eb..1bdecc5 100755 --- a/run.php +++ b/run.php @@ -42,10 +42,10 @@ $c->subscribe(DOOR_TOPIC, 2); $c->onMessage(function (Message $message) { switch ($message->topic) { - case getenv("ENERGY_COUNTER_TOPIC"): + case ENERGY_METER_TOPIC: energy($message->payload); break; - case getenv("DOOR_TOPIC"): + case DOOR_TOPIC: door($message->payload); break; }