sskaje / mqtt

MQTT Client class
https://sskaje.me/category/MQTT/
MIT License
86 stars 33 forks source link

loop can be infinity or not #32

Open badmansan opened 5 years ago

badmansan commented 5 years ago

User can write $mqtt->loop(2); and loop end after two received messages. Infinity loop available as $mqtt->loop();

This is useful for writing tests, for example.