loboris/RePhone_on_Linux

MQTT SOCKET CONNECTION ERROR

Opened this issue · 0 comments

Hello,
I created mqtt_id with mqtt.create(cfg) method and my parameters are :

cfg={

host="broker.mqttdashboard.com",
port=8000,
}
When I tried to get connection command:
res=mqtt.connect(mqtt_id, 30, 60)
The response are:

[INFO] mqtt.c:124 [mqtt] Bearer [4] would block

[DEBUG] mqtt.c:131 [mqtt] Bearer [4] deactivated.

[DEBUG] mqttnet.c:104 [Mqtt] Socket_Connect Error: Fd=6, Rc=-1, SoErr=-10

[DEBUG] mqtt.c:362 [MQTT] Net Connect: Error (Bad argument) (-1)

Also, when I try publish command, I don't get any error response but there is nothing on my mqtt server.

Can any body help please?

Thanks.