You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-40Lines changed: 20 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -1,67 +1,38 @@
1
1
# PHP MQTT Client
2
2
3
-
phpMqttClient is a mqtt client library for PHP. Its based on the reactPHP socket-client and added the mqtt protocol specific functions. I hope its a better starting point that the existing php mqtt libraries.
3
+
phpMqttClient is an MQTT client library for PHP. Its based on the reactPHP socket-client and added the MQTT protocol
4
+
specific functions. I hope its a better starting point that the existing PHP MQTT libraries.
This is library is not stable currently. Its an early state, but I am working on it. I will add more features if I need them. If you need features: please give feedback or contribute to get this library running.
11
-
12
-
Currently works:
13
-
* connect (clean session, no other connect flags)
14
-
* disconnect
15
-
* publish
16
-
* subscribe
17
-
18
10
## Goal
19
11
20
-
Goal of this project is easy to use MQTT client for PHP in a modern architecture without using any php modules. Currently, only protocol version 4 (mqtt 3.1.1) is implemented.
12
+
Goal of this project is easy to use MQTT client for PHP in a modern architecture without using any php modules.
13
+
Currently, only protocol version 4 (mqtt 3.1.1) is implemented.
$p->then(function(\React\Stream\Stream $stream) use ($connector) {
@@ -73,9 +44,18 @@ $p->then(function(\React\Stream\Stream $stream) use ($connector) {
73
44
$connector->subscribe($stream, 'a/c', 0);
74
45
});
75
46
76
-
$loop->run();
47
+
$connector->getLoop()->run();
77
48
```
78
49
50
+
## Notice - (May 12th, 2015)
51
+
This is library is not stable currently. Its an early state, but I am working on it. I will add more features if I need them. If you need features: please give feedback or contribute to get this library running.
0 commit comments