ng2-mqtt icon indicating copy to clipboard operation
ng2-mqtt copied to clipboard

Error: Unknown property, mqttVersionExplicit.

Open zacsonskaria opened this issue 7 years ago • 3 comments

I am getting error during mqtt reconnect.

Error: Uncaught (in promise): Error: Unknown property, mqttVersionExplicit. Valid properties are: timeout userName password willMessage keepAliveInterval cleanSession useSSL invocationContext onSuccess onFailure hosts ports mqttVersion

Refer - https://www.eclipse.org/forums/index.php/t/1069724/

zacsonskaria avatar Nov 06 '17 19:11 zacsonskaria

I encounter the same problem here.

This bug exists since Aug. 2015.

Is there any fix planed?

KarlZeilhofer avatar Mar 25 '19 20:03 KarlZeilhofer

I’ll have a look at this in a few days, when I have more time, thanks!

icanos avatar May 10 '19 19:05 icanos

To solve this issue I had to override the connectOptions variable, it seems a wrong/old parameter (mqttVersionExplicit) is automatically inserted during connection, so that when you attempt to reconnect the options are in a wrong format. Just override the variable and connect again, it will work.

AbCthings avatar Sep 24 '19 14:09 AbCthings