MQTT noode.js library issue

Sett 181 ganger
Hopp til første uleste melding

Why Tea

ulest,
30. mars 2015, 00:55:3330.03.2015
til mq...@googlegroups.com
Not sure if this is the right group to ask, but I'll try anyway...

I have tried mqtt-panel (https://github.com/fabaff/mqtt-panel). Although it's running OK, I always get the following warning/error from the node.js mqtt library (I have installed the latest):

/var/www/html/mqtt-panel-master$ nodejs server.js
createClient is deprecated, use connect instead
..

When I tried to use "connect" as suggested, I got the following instead:
/var/www/html/mqtt-panel-master/node_modules/mqtt/lib/connect/index.js:62
    opts.protocol = opts.protocol.replace(/\:$/, '');
                                  ^
TypeError: Cannot call method 'replace' of null
    at Object.connect (/var/www/html/mqtt-panel-master/node_modules/mqtt/lib/connect/index.js:62:35)
    at Object.<anonymous> (/var/www/html/mqtt-panel-master/server.js:17:23)
    at Module._compile (module.js:456:26)
...

When I googled and found http://ryanjbaxter.com/2014/11/12/updated-bluemix-and-the-internet-of-things/. The info didn't help him with fixing the error.

Has anyone resolved the same or similar issue before?

Thanks for any advice or suggestions.

/WT
Svar alle
Svar til forfatter
Videresend
0 nye meldinger