kevinohara80 / elkington

A node.js module for interfacing with the Elk M1 Gold automation controller
MIT License
22 stars 11 forks source link

TypeError: on scaled down weather.js example #3

Closed ghost closed 11 years ago

ghost commented 11 years ago

If the weather.js example is scaled down to:


var elknode = require('../index'); var temp = 'zero'; var elk = elknode.createConnection({ port: 2101 , host: '192.168.123.34'}); elk.on('connect', function(data) { elk.speak('outside temperature is ' + temp + ' degrees'); elk.disconnect(); });


This error occurs: index.js:70 msg.host = that._connection.address().address;

TypeError: Cannot read property 'address' of null


It seems that removing the 'request' function call is related to the issue.

kevinohara80 commented 11 years ago

Hmm, I'll test this over the weekend and see what's up.

ghost commented 11 years ago

oops, didn't mean to close it....