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

Problem with Scan #35

Open
angela-tithi opened this issue Oct 24, 2022 · 1 comment
Open

Problem with Scan #35

angela-tithi opened this issue Oct 24, 2022 · 1 comment

Comments

@angela-tithi
Copy link

Hi! I am having some issues while using gattacker. The problem is - after running the "node scan"command on the host, it doesn't scan anything. I wanted to do my experiment with a smartband, but it is not being scanned. I do not have any idea what's going on and how to fix this. Would you please help me?

(P.S. - I faced problem while installing gattacker, as per suggestions on the internet, I tried with node 8, but node 8 didn't work for me. So, I changed every dependency version to "latest" and installed gattacker using node 18.10. I was having issues with blutooth-hci-socket, I learned that the project is not being maintained. So, I replaced it with https://www.npmjs.com/package/@abandonware/bluetooth-hci-socket - this one. I am not sure what is causing the problem. I need your help.)

Thanks for your time! May God bless you!

@treble37
Copy link

I felt your pain....In terms of getting past the dependency installation issues (using Node 20.18.1), I have the following package.json

{
  "dependencies": {
    "bleno": "abandonware/noble#master",
    "noble": "abandonware/noble#master",
    "gattacker": "treble37/gattacker#hci-socket"
  }
}

Then once that's installed, I go to ~/node_modules/gattacker and I have the dependencies in package.json set up as such:

"dependencies": {
"async": "^2.0.1",
"@abandonware/bluetooth-hci-socket": "0.5.3-12",
"bplist-parser": "^0.0.6",
"colors": "^1.1.2",
"debug": "^2.6.9",
"env2": "^2.1.0",
"glob": "^7.0.5",
"ws": "^8.18.0",
"node-getopt" : "treble37/node-getopt#package-update"
}

(In my fork of gattacker I'm going to try and edit the above dependencies shortly so they get installed with my forked branch instead of manually editing).

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