File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
# php-mqtt-client
2
2
MQTT 3.1.1 Client with TSL support in PHP
3
3
4
+ Note that all calls are blocking until a timeout occurs. If you need some fancy async solution, you'll have to find another repo.
5
+
4
6
# Installation
5
7
6
8
The preferred way to install this extension is through [ composer] ( http://getcomposer.org/download/ ) .
@@ -26,7 +28,7 @@ Not tested on PHP v7, please report back!
26
28
# Basic Usage
27
29
28
30
$client = new MQTTClient('mqtt-server.domain.com', 8162);
29
- $client->setAuthentication'mqtt-server.username','mqtt-server.password');
31
+ $client->setAuthentication( 'mqtt-server.username','mqtt-server.password');
30
32
$client->setEncryption('cacerts.pem');
31
33
$success = $client->sendConnect(12345); // set your client ID
32
34
if ($success) {
You can’t perform that action at this time.
0 commit comments