eclipse / paho.mqtt.cpp

Other
990 stars 429 forks source link

MQTT error [-1] when using ipv6 URI #212

Open bmulder-innoseis opened 5 years ago

bmulder-innoseis commented 5 years ago

When I initialize a connection using an ipv6 URI (in the form of e.g. tcp://[1234::5678:9abc]:1883) I get "MQTT error [-1]:" when I call connect on the client.

Maybe this is related to https://github.com/eclipse/paho.mqtt.c/issues/179 or https://github.com/eclipse/paho.mqtt.c/issues/7

Anyway, is ipv6 supposed to be supported?

fpagliughi commented 5 years ago

Yes, the library should support IPv6 sockets/addresses. The C++ library just passes the server URI string to the underlying C lib. I'll test it out to verify that it works.

fpagliughi commented 2 months ago

We're hoping for IPv6 issues to be resolved in the upcoming Paho C v1.4 release...