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

Capture "seen"/scanned devices #26

Closed
truedat101 opened this issue Feb 8, 2024 · 7 comments
Closed

Capture "seen"/scanned devices #26

truedat101 opened this issue Feb 8, 2024 · 7 comments

Comments

@truedat101
Copy link
Contributor

Need to start tracking these scans and frequency of seeing devices

  • initially just capture all UUIDs seen, with date added, and frequency of being seen, and place
truedat101 added a commit that referenced this issue Feb 8, 2024
"getting started" docs are lacking on the flutter docs for couchbase
Need to initialize the DB inside of main before you do anything.
This currently just captures whatever gets scanned in terms of UUIDs.
Will figure out what to do with this later.
truedat101 added a commit that referenced this issue Mar 16, 2024
truedat101 added a commit that referenced this issue Mar 16, 2024
truedat101 added a commit that referenced this issue Mar 23, 2024
@truedat101
Copy link
Contributor Author

Related is #49 .

@truedat101
Copy link
Contributor Author

I need to review how to extract data from the Manufacturing Data in the advertisement:

https://docs.silabs.com/bluetooth/4.0/general/adv-and-scanning/bluetooth-adv-data-basics#advertising-data-format

@truedat101
Copy link
Contributor Author

Seems like manufacturing data is somewhat proprietary ...

@truedat101
Copy link
Contributor Author

Add a busy wait while scanning

@truedat101
Copy link
Contributor Author

busy scanning indicator is in.l

pedroalvesbatista pushed a commit to pedroalvesbatista/ProjectMagNET that referenced this issue May 7, 2024
pedroalvesbatista pushed a commit to pedroalvesbatista/ProjectMagNET that referenced this issue May 7, 2024
pedroalvesbatista pushed a commit to pedroalvesbatista/ProjectMagNET that referenced this issue May 7, 2024
pedroalvesbatista pushed a commit to pedroalvesbatista/ProjectMagNET that referenced this issue May 7, 2024
pedroalvesbatista pushed a commit to pedroalvesbatista/ProjectMagNET that referenced this issue May 7, 2024
pedroalvesbatista pushed a commit to pedroalvesbatista/ProjectMagNET that referenced this issue May 7, 2024
@truedat101
Copy link
Contributor Author

Need to change this can

_devices.addIf(!_devices.contains(device) && _devices.every((element) => element['uuid'] != device.id), {
            'id': device.id.substring(device.id.length-5),
            'uuid': device.id,
            'name': device.name,
            'type':  device.manufacturerData.toString(),
            'lastseen': DateTime.now().toLocal()
          });

to do something different. Instead of only adding new scan items, also update anything that was seen, and change its last seen.

@truedat101
Copy link
Contributor Author

saving these into local db. closing.

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