devgiants / mosquitto-clients-php-react-wrapper
ReactPHP wrapper for mosquitto clients (mosquitto_sub and mosquitto_pub)
0.0.6
2018-05-22 07:36 UTC
Requires
- evenement/evenement: ^2.0
- react/event-loop: ^0.5.2
README
Preconfiguration
Use config files setup, such as :
# Host
-h 192.168.1.2
-p 1883
# Protocol used
-V mqttv311
# Last known good (retain)
-r
# Username and password
-u test
-P password
Usage
Subscription
Use Events::INTERNET_CONNECTION_AVAILABLE
to be sure internet connection is active