Mqtt client: No connection to broker 出现原因和方案咨询

sorshion

问题描述

如标题

为此你搜索到了哪些方案及不适用的原因

github issue有提到,但还是不够理解,有没有人可以浅显的讲解的,感谢

264 1 0
1个回答

six

字面意思,没连上mqtt服务端

  • sorshion 2024-05-22

    感谢大佬回复,主要是我想知道为什么没链接上,对于workerman这种机制不是太懂,哪怕使用php-mqtt/client,这个库,也是出现PhpMqtt\Client\Exceptions\ConnectingToBrokerFailedException: [5] Establishing a connection to the MQTT broker failed: The configured broker reported the credentials as invalid

  • six 2024-05-22

    https://www.workerman.net/doc/workerman/components/workerman-mqtt.html
    连的时候把debug打开就看到信息了

×
🔝