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

Beacon data is not received #1

Open
Balasubramanian93 opened this issue Oct 15, 2019 · 0 comments
Open

Beacon data is not received #1

Balasubramanian93 opened this issue Oct 15, 2019 · 0 comments

Comments

@Balasubramanian93
Copy link

Hi Team,

In the Beacon sample, data is not received after adding the CompanyID

` if (this.Frame.CanGoBack)
{
SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
SystemNavigationManager.GetForCurrentView().BackRequested += Publish_BackRequested;
}

        this.watcher = new BluetoothLEAdvertisementWatcher();
        var manufacturerDataWriter = new DataWriter();
        manufacturerDataWriter.WriteUInt16(0x1234);

        //var manufacturerData = new BluetoothLEManufacturerData
        //{
        //    CompanyId = 0xFFFE,
        //    Data = manufacturerDataWriter.DetachBuffer()
        //};

        //this.watcher.AdvertisementFilter.Advertisement.ManufacturerData.Add(manufacturerData);

        watcher.Received += Watcher_Received;
        watcher.Start();`

If i comment out the above line then receiver handler is raised properly.

@github-staff github-staff deleted a comment May 27, 2024
@github-staff github-staff deleted a comment May 27, 2024
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