Skip to content

Commit 9ad66f5

Browse files
authored
Update README.md
1 parent 834fbfb commit 9ad66f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# php-mqtt-client
22
MQTT 3.1.1 Client with TSL support in PHP
33

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+
46
# Installation
57

68
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!
2628
# Basic Usage
2729

2830
$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');
3032
$client->setEncryption('cacerts.pem');
3133
$success = $client->sendConnect(12345); // set your client ID
3234
if ($success) {

0 commit comments

Comments
 (0)