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

how to update the beacons information in the listview? #25

Open
dualxu opened this issue May 18, 2018 · 1 comment
Open

how to update the beacons information in the listview? #25

dualxu opened this issue May 18, 2018 · 1 comment

Comments

@dualxu
Copy link

dualxu commented May 18, 2018

Hi,

I have checked the WindowsBeacons.sln, and run the Bluetooth Beacon Interactor in Win10, the beacons info in the listview don't updeted immediately. My beacons brocast the advertismement frame every 500ms, but the rssi and timestamp don't updated in 500ms.
I dont know why, please!
thanks!

@benzben
Copy link

benzben commented Jun 4, 2018

I've got the same/a similar problem I'm currently working on.
In a file called MainPage.xaml.cs in a sample project I found the following comment regarding the BeaconManagerOnBeaconAdded method:

    /// This event will only be invoked once, the very first time a beacon is discovered.
    /// For more fine-grained status updates, subscribe to changes of the ObservableCollection in
    /// BeaconManager.BluetoothBeacons (_beaconManager).
    /// To handle all individual received Bluetooth packets in your main app and outside of the
    /// library, subscribe to AdvertisementPacketReceived event of the IBluetoothPacketProvider
    /// (_provider).

But I really don't know how to implement this functionality. I would be glad if somebody had a solution for this.
The AdvertisementPacketReceived event is the unformatted event of the Windows.Devices.Bluetooth API (I think) and therefore a step back, as we are using the Universal Beacon Library for receiving user-friendly formatted Advertisements.
Therefore it must be something with this ObservableCollection, but I can't figure it out.

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