Warning: Cannot declare class \Workerman\Protocols\Mqtt, because the name is already in use in
服務(wù)器收到數(shù)據(jù),需要使用MQTT.轉(zhuǎn)發(fā)到其它服務(wù)器上,在public static function onMessage($client_id, $message)回調(diào)中使用mqtt,出現(xiàn)不能聲明的問題。
完整報(bào)錯(cuò)和代碼貼下
老哥,你這個(gè)問題解決了么,我也是這樣