true, "username"=>"admin", "password"=>"admin123456", "client_id"=>"admin" )); $mqtt->onConnect = function($mqtt) { $mqtt->publish('test', 'hello workerman mqtt'); }; // $mqtt->onMessage = function($topic, $content) { // echo "topic:$topic content:$content\n"; // }; $mqtt->connect(); } }