Closed tareq0065 closed 4 years ago
Is there a MQTT server running? Looks like the code cannot connect to the server.
How can I check this that my server is good for MQTT or not? Do you have any suggestion?
Also yes at first I guess this too as you said. But I have checked with multiple MQTT servers from cloudMQTT. They are working well at localhost.
You should make sure that $server/$port is filled with the correct server. If that is the case there is maybe some sort of firewall blocking the connection. You should ask the company that is hosting the server.
Hi Guys,
Have you got any solution for this, i have the same error also.
Thank you
I am restarting this project so having a clear out of old issues (If you believe this is still valid please reopen)
Canned Response: Subscribe is not designed for web requests, it should be used in a long running process. I do plan to add a subscribeAndWaitForMessage() function #95
I have tried many servers to use, but it's not working. I am always getting the time out. Is there any special requirement to use the server? Or if I missing something on settings? Actually, I have some dynamic form that contains dynamic fields. After posting any of form I want to do a publish action to the mqtt server. It's working on localhost (wamp server) very good. But after uploading it on my Cpanel hosting it's showing me "time out"