日志如下,ip 用???替代,看上去网络是通畅的,但是发布一条消息要快10s才能成功
root@orangepizero2:~# time mqttx pub -t ‘hello’ -h ‘???’ -p 1883 -m ‘from MQTTX CLI’
[1/20/2024] [2:44:16 PM] › … Connecting…
[1/20/2024] [2:44:16 PM] › Connected
[1/20/2024] [2:44:16 PM] › … Message publishing…
[1/20/2024] [2:44:16 PM] › Message published
real 0m8.533s
user 0m10.471s
sys 0m0.567s
root@orangepizero2:~# ping ???
PING ??? (???) 56(84) bytes of data.
64 bytes from ???: icmp_seq=1 ttl=52 time=37.2 ms
64 bytes from ???: icmp_seq=2 ttl=52 time=23.3 ms
64 bytes from ???: icmp_seq=3 ttl=52 time=20.5 ms
64 bytes from ???: icmp_seq=4 ttl=52 time=14.7 ms
64 bytes from ???: icmp_seq=5 ttl=52 time=20.4 ms
64 bytes from ???: icmp_seq=6 ttl=52 time=20.6 ms