bluerhinos / phpMQTT

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

PHP server hangs after few MQTT publish requests #24

Closed lunanigra closed 4 years ago

lunanigra commented 8 years ago

Hello, I would like to use your MQTT lib to publish commands against IBM Bluemix.

Basically it works fine. But after several call the whole PHP instance hangs. I assume that there is a small mistake in integrating the lib.

I your sample the connection is closed after publishing the command. Is there a way to keep the connection open? Idee is a PHP script called via Ajax. Hope this makes sense.

Thanks!

bluerhinos commented 4 years ago

I am restarting this project so having a clear out of old issues (If you believe this is still valid please reopen)

I am going to add a subscribeAndWaitForMessage function that could help the Ajax use case #95