change method name to ConnectAndPublish
This commit is contained in:
1 parent
98ff2fe0f9
commit
0e3dc32f5d
2 files changed
+4
-3
No files matched your search
@@ -30,7 +30,7 @@ class Mqtt
|
||||
}
|
||||
|
||||
|
||||
public function ConnectAndSendMessage($topic, $msg)
|
||||
public function ConnectAndPublish($topic, $msg)
|
||||
{
|
||||
$client = new phpMQTT($this->host,$this->port, rand(0,100), $this->cert_file, $this->debug);
|
||||
|
||||
@@ -46,4 +46,5 @@ class Mqtt
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user