issue 1 fixed for username nad password authentication
This commit is contained in:
1 parent
a214988d8c
commit
d8a5ddc3f2
1 file changed
+1
-1
@@ -57,7 +57,7 @@ class Mqtt
|
||||
{
|
||||
$client = new MqttService($this->host,$this->port, rand(0,100), $this->cert_file, $this->debug);
|
||||
|
||||
if ($client->connect(true))
|
||||
if ($client->connect(true, null, $this->username, $this->password))
|
||||
{
|
||||
$client->publish($topic,$msg);
|
||||
$client->close();
|
||||
|
||||
Reference in new issue
Block a user