diff --git a/app/mqtt/Publish.php b/app/mqtt/Publish.php index 9dbe824..1970a94 100644 --- a/app/mqtt/Publish.php +++ b/app/mqtt/Publish.php @@ -13,9 +13,9 @@ class Publish public function onConnect(TcpConnection $connection) { - $mqtt = new \Workerman\Mqtt\Client('mqtt://ceshi-mqtt.lihaink.cn:1883', array( - "username" => "demo2", - "password" => "123456", + $mqtt = new \Workerman\Mqtt\Client('mqtt://mqtt.lihaink.cn:1883', array( + "username" => "lihai_lot_land_1", + "password" => "lihai_lot_land_1", "client_id" => "admin_123", )); $mqtt->connect();