bluerhinos / phpMQTT

a simple php class to connect/publish/subscribe to a MQTT broker
Other
765 stars 461 forks source link

Issue in phpmqtt #124

Open Armgan opened 2 years ago

Armgan commented 2 years ago

I am facing issue in phpmqtt i am running bluerhinos phpmqtt example on localhost showing me an error "time out " please help me to connect this

541263 commented 2 years ago

Check server address, name, password. If you've just added it into users.lists (f.e. in /etc/mosquitto) don't forget to do systemctl restart mosquitto. Looks like your script cannot connect to server for some reason.