oklona / Miele-MQTT

A very simple script to read data from Miele@home cloud services, and publish using Mosquitto MQTT
21 stars 10 forks source link

phpMQTT.php link in miele-MQTT.php #12

Closed pedrorissi81 closed 4 years ago

pedrorissi81 commented 4 years ago

On my loxberry I got this error when starting the script ` PHP Fatal error: Uncaught Error: Class 'phpMQTT' not found in /opt/loxberry/webfrontend/legacy/miele/miele-MQTT.php:284 Stack trace:

0 {main}

thrown in /opt/loxberry/webfrontend/legacy/miele/miele-MQTT.php on line 284 Fatal error: Uncaught Error: Class 'phpMQTT' not found in /opt/loxberry/webfrontend/legacy/miele/miele-MQTT.php:284 Stack trace:

0 {main}

thrown in /opt/loxberry/webfrontend/legacy/miele/miele-MQTT.php on line 284 `

so changing from $mqtt = new phpMQTT($mosquitto_host, "1883", $client_id); to $mqtt = new Bluerhinos\phpMQTT($mosquitto_host, "1883", $client_id); fixes the problem

maybe this can be adapted, too?

regards Pedro

oklona commented 4 years ago

Yes, of course! Sorry for that, I had discovered that, but thought it was just a mistake in my local code...

pedrorissi81 commented 4 years ago

looks great!