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

Update rssi fails/ rssi example #442

Open
ElesGergo opened this issue Sep 10, 2019 · 0 comments
Open

Update rssi fails/ rssi example #442

ElesGergo opened this issue Sep 10, 2019 · 0 comments

Comments

@ElesGergo
Copy link

I am developing a ble software for rpi3 and I need to see the updated rssi on the pheripheral.
What I want to achive is to only let devices connect (or let them connect and disconnect them if they are too far) under a cetain rssi(-50 can connect, -60 can't).
I tried to implement the
bleno.updateRssi((rssi,err)=>{ console.log(rssi) });
function and subscribe to the
bleno.on("rssiUpdate",(rssi,err)=>{console.log(rssi)})
but it does not seemed to log anything work.
Can you help me out with an example?

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

1 participant