<?php require_once __DIR__ . '/vendor/autoload.php'; use Workerman\Worker; use Workerman\Mysql; use \Workerman\Connection\AsyncTcpConnection; //启动websocket 用于获取web端信息 $worker = new Worker('websocket://192...
for ($a = 0 ;$a<500;$a++){ echo "a = ".$a."||||"; $mqtt->publish( "/1805705204f0468788/getGeneral",$a,); usleep(500000); } 只能发送100个到mqtt服务器上,剩余400个虽然循环 还在执行,但是mqtt服务器就收不到了。不知道为什么求大神解答,mqtt服务...