Delphi-TMQTT2 icon indicating copy to clipboard operation
Delphi-TMQTT2 copied to clipboard

Connect claims to have connected although connection was immediately closed

Open msedv opened this issue 7 years ago • 0 comments

When having:

if MQTT.Connect then

one get's True as return value even if the connect failed. Suggestion: in CONNACK the "Connect Return code" should be checked; any value other than 0 means that the server closed the connection because of a failure during connect. See http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718035

msedv avatar May 28 '17 13:05 msedv