bluerhinos / phpMQTT

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

Class 'phpMQTT' not found #50

Closed akshar001 closed 5 years ago

akshar001 commented 6 years ago

Hello i don't know why i am getting this error...

thomasvt1 commented 6 years ago

That's an easy fix! :)

Remove namespace Bluerhinos; From phpMQTT.php

I hope this helps

akshar001 commented 6 years ago

It does!! I have to hug you for that thanks a lot..

starcruizer commented 6 years ago

@thomasvt1 thankyou very much

parispring commented 6 years ago

$mqtt = new Bluerhinos\phpMQTT($server, $port, $client_id);

starcruizer commented 6 years ago

Thanks @parispring it also worked !!

manfer9559 commented 6 years ago

Advertencia : stream_socket_client (): no se puede conectar a tcp: //*.cloudmqtt.com: *** (Conexión rechazada) en /home/****/public_html/****/phpMQTT-master/phpMQTT.php en la línea 89 Time out!

Mi archivo publish.php es asi errror

error

akshar001 commented 5 years ago

Sorry for not closint it soon it works very fine