-
Notifications
You must be signed in to change notification settings - Fork 94
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
New buttons are using UDP instead of ARP #42
Conversation
I've added some tests. |
this is working way better than just the ARP-method (which missed some requests), good job, thank you +1 |
Wouldn't it be better if you try to catch all requests from a dash-button mac address? |
Hi @Bastl34. Logically, I'd say yes. Do you know if pcap can be configured in that way? |
What if you just check if the package was sent by the mac address by removing these checks:
|
Those checks are required, because I detect the UDP MAC differently to that of the ARP MAC. It maybe that the ARP MAC can be identified using the same method that I'm employed for UDP, but I haven't checked. The focus of this pull request was to get UDP working, not refactoring the existing process. If @hortinstein is up for it, I have couple more ideas for optimisations, once this PR has been resolved. |
hey thank you for the pull request! I haven't been able to put much work into this library for a while so community help means a lot. I will merge and push to NPM today. (thanks for writing tests too!) |
That's great, and no problem! |
This is still not pushed to npm? :) Latest npm version is 0.5.5 |
I'm sure you're probably aware of this (and it's not ideal), but just in case! You can switch the version for 'hortinstein/node-dash-button' in the package.json file. This will allow you to install from GitHub Master.
|
strange, on search results it shows that 0.6.0 is published: But on the actual page: I will try to repub. |
weird so it rejected my repub of 0.6.0 but took 0.6.1. It appears to be updated now, let me know if there are anymore issues! |
Hi, I had issues too, I have a button that definitely used to work and I haven't changed anything, it's on a Pi running openelec so I definitely haven't updated anything since setting it up. It really does seem like they updated the firmware. I continued to have issues until I found that I needed to specify
|
My button was initially picked up using the ARP method, but after about 20 minutes, stopped being picked up. Turns out, possibly through a firmware update, the message protocol had switched to UDP.
This pull request adds the ability to monitor UDP. I've implemented in a way as to not break existing implementations. The index script defaults to ARP only, which you can configure to search for UDP only or both protocols.
findbutton
now searches both by default, and outputs the protocol used.I've updated the documentation, but have not written any additional tests. I've not really tested anything on the network before, so guidance would be appreciated.
Thanks for the library! It allowed me (initially at least), to get up and running very quickly.