sandeepmistry / node-sensortag

Node.js lib for the TI SensorTag
MIT License
218 stars 111 forks source link

discoverAll() not defined error #89

Closed roccomuso closed 7 years ago

roccomuso commented 7 years ago

I'm trying to execute a script using this library. But when I call sensortag.discover(...); I get an error like:

TypeError: Object function () { [hidden code] }
 has no method 'discoverAll' 

raised on this line: https://github.com/sandeepmistry/node-sensortag/blob/master/lib/sensortag.js#L8

Do cc2540.js expose somewhere the discoverAll method?

sandeepmistry commented 7 years ago

Hi @roccomuso,

Things seem fine to me, could you please share a script that reproduces the error?

discoverAll is provided by noble-device.

roccomuso commented 7 years ago

@sandeepmistry actually it was my fault... my "environment" doesn't support that kind of class inheritance. I forgot to close the issue.