Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev.on("deviceReady", () => { this.emit("deviceReady", dev); }); #11

Closed
jcwlim opened this issue Mar 20, 2017 · 2 comments
Closed

dev.on("deviceReady", () => { this.emit("deviceReady", dev); }); #11

jcwlim opened this issue Mar 20, 2017 · 2 comments

Comments

@jcwlim
Copy link

jcwlim commented Mar 20, 2017

When I tried to run the homebridge, it throw me this error. May I know what happen?
dev.on("deviceReady", () => { this.emit("deviceReady", dev); });
^

TypeError: Cannot read property 'on' of undefined
at Socket.cs.on (/usr/lib/node_modules/homebridge-broadlink-rm/node_modules/broadlinkjs/index.js:183:16)
at emitTwo (events.js:106:13)
at Socket.emit (events.js:194:7)
at UDP.onMessage [as onmessage] (dgram.js:545:8)
root@mediahub:~/.homebridge# dev.on("deviceReady", () => { this.emit("deviceReady", dev); });
bash: syntax error near unexpected token `"deviceReady",'

@lprhodes
Copy link
Owner

Sounds like you have an unsupported device or perhaps the wrong IP address for the device. What broadlink rm device do you have?

@lprhodes lprhodes mentioned this issue Mar 20, 2017
@jcwlim
Copy link
Author

jcwlim commented Mar 21, 2017

I am having RM Pro but the code is not inside your index.js. I temporary change the last line
else{
...
dev.rm();
return dev;;
}
then the problem resolved. The IR is working but the RF is not working...
I will try to get the devgeneration code for you.

blar pushed a commit to blar/homebridge-broadlink-rm that referenced this issue Oct 11, 2019
* Updated README.md to include notes on new features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants