node.js VBUS

262 views
Skip to first unread message

Sebastian Kaiser

unread,
Jul 7, 2014, 7:51:06 AM7/7/14
to resol...@googlegroups.com
Hi All,
I'm trieing to get the node.js resol-vbus example customizer to work but get an ecxeption:
.../node_modules/q/q.js:126 
throw e
cannot call method 'disconnect'

Does someone has an idea?

Thx,
Sebastian

Daniel Wippermann

unread,
Jul 8, 2014, 1:28:26 AM7/8/14
to Resol Vbus
Hi Sebastian,

could you try to replace the following part of the example:

   }).finally(function() {

        reportProgress('Disconnecting...');


        context.connection.disconnect();

    });


with this block:

   }).finally(function() {

        reportProgress('Disconnecting...');


        if (context.connection) {

            context.connection.disconnect();

        }

    });


and see if it works better for you?

If it does, then most probably the call to „createConnection“ failed, resulting in an undefined „context.connection“.

Best regards,
    Daniel


Sent with Mail Pilot
Reply all
Reply to author
Forward
0 new messages