diff --git a/CounterServer/module.php b/CounterServer/module.php index e8b0db7..0c0b459 100644 --- a/CounterServer/module.php +++ b/CounterServer/module.php @@ -104,7 +104,7 @@ class CounterServer extends IPSModule continue; } - $meterId = (int)$res[0]['id']; + $meterId = $res[0]->id; // ---------- INSERT measurement ---------- $sqlInsert = "