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