我用下面的代碼,我得到這個錯誤:MQTT連接建立:
Time out error : [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host failed to respond.
我也關閉了防火牆的系統我使用,我仍然得到那個錯誤。
#!/usr/bin/env python3
import paho.mqtt.client as mqtt
# This is the Publisher
client = mqtt.Client()
client.connect("10.12.114.103",1883,60)
client.publish("topic/test", "Hello world!");
client.disconnect();
的MQTT經紀人@ 10.12.114.103:1883沒有應答,請嘗試使用MQTTfx或類似工具連接到檢查的經紀人正在 – Adirio
我用hivemq經紀人,仍然會得到相同的錯誤.. – Stacy
您確定該經紀人在您運行測試時在10.12.114.103上運行嗎? – hardillb