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

bluetoothLowEnergy.registerAdvertisement throws error #275

Open
tonyclickspace opened this issue Jul 19, 2018 · 0 comments
Open

bluetoothLowEnergy.registerAdvertisement throws error #275

tonyclickspace opened this issue Jul 19, 2018 · 0 comments

Comments

@tonyclickspace
Copy link

Dart 1.24.3, compiled with dart2js using --csp flag
Running on ChromeOS:

import 'package:chrome/chrome_app.dart' as chrome;
void main() {
  chrome.Advertisement advertisement = new chrome.Advertisement(type: chrome.AdvertisementType.BROADCAST, serviceUuids: <String>['1234']);
  int id = await chrome.bluetoothLowEnergy.registerAdvertisement(advertisement); //error
}

Throws:
Error: Invalid argument for property 1. Property 'serviceUuids': expected 'Array' got 'object'.

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