-
Notifications
You must be signed in to change notification settings - Fork 46
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
TypeError: device must be a string #40
Comments
Did you check |
console.dir(device) is undefined, so that's a problem console.dir(Cap.deviceList()) gives a few interfaces |
Ok, but none of the interfaces shown include the interface with the IP address you're trying? If that is true, then you may need to find out what is unique about the missing interface. If you execute Lastly, what OS and OS version are you trying this on? |
Is that supposed to be my own address? What if I'm trying to monitor arp packets from everywhere? (It does work if I change the I see my own address with Win10 |
Yup, figured it out. I just used this library (which builds off of cap) - so if anyone reads this in the future is trying to work with dash buttons - read this: I needed to put my own IP, which wasn't very idiot friendly, but it doesn't need to be.
|
Not working for me, still I am getting undefined on line device = Cap.findDevice('192.168.1.131') |
I just copy-pasted code from the example and I get that error. Why though? I can ping it just fine.
The text was updated successfully, but these errors were encountered: