Coder Social home page Coder Social logo

Comments (4)

hypfvieh avatar hypfvieh commented on August 14, 2024

Which devices are visible/found during scan depends on what bluez sees.
When bluez thinks that a device is still available (even though it has been turned off) it will be found during scan.

from bluez-dbus.

1784450277 avatar 1784450277 commented on August 14, 2024

After restarting my device, I can still scan the device that has been shut down. Where does this data exist? Is it possible for me to clear this data

from bluez-dbus.

hypfvieh avatar hypfvieh commented on August 14, 2024

This library is only a bridge between java and bluez. It does this by providing the required interface classes used to connect to bluez using dbus.
If bluez has stored something somewhere and still propagates this information on dbus you will still get that information.

There is no way of clearing this data. This library simply uses what bluez is publishing on DBus. You may try the bluez commandline tool to check what bluez does. You may also use dbus commandline utils (or a GUI like d-feet) to see what information bluez is publishing on the bus.

from bluez-dbus.

1784450277 avatar 1784450277 commented on August 14, 2024

I have found a solution that can clear the cache after executing a command
service bluetooth stop
rm -rf /var/lib/bluetooth
service bluetooth start

from bluez-dbus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.