New issue
Advanced search Search tips

Issue 599426 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 589796
Owner: ----
Closed: Apr 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocking:
issue 545682



Sign in to add a comment

bluetooth: can't start multiple notifications

Project Member Reported by fbeaufort@chromium.org, Mar 31 2016

Issue description

According to ketile, snippet code below does work on Chrome OS but not on Android.
He can't get multiple notifications to work. Is that a known issue on Chrome Dev for Android?

  ...
  .then(() => bleService.getCharacteristic(pressureCharacteristicUUID))
  .then( characteristic => {
    log('Got pressureCharacteristic');
    pressureChar = characteristic;
    return pressureChar.startNotifications();
  })
  .then(() => {
    pressureChar.addEventListener('characteristicvaluechanged',handleNotifyPressure);
  })
  .then(() => bleService.getCharacteristic(humidityCharacteristicUUID))
  .then( characteristic => {
    log('Got humidityCharacteristic');
    humidityChar = characteristic;
    return humidityChar.startNotifications();
  })
  .then(() => {
    humidityChar.addEventListener('characteristicvaluechanged',handleNotifyHumidity);
  })
  .then(() => bleService.getCharacteristic(temperatureCharacteristicUUID))
  .then( characteristic => {
    log('Got temperatureCharacteristic');
    temperatureChar = characteristic;
    return temperatureChar.startNotifications();
  })
  .then(() => {
    myCharacteristic.addEventListener('characteristicvaluechanged',handleNotifyTemperature);
  })
  **/

Full code is available at https://github.com/ketile/ketile.github.io/blob/e3d018f37ddfb8f511c0baf89cf1fcb37476e8e5/experiments/responsive-ui/javascript/weather_station.js#L263
 

Comment 1 by ortuno@chromium.org, Mar 31 2016

Labels: -Pri-2 Pri-3
A little more info and logs would be nice. Does ketile get an error or are notifications just not being returned?
He's going to share with me an image I can try to get more logs.
Mergedinto: 589796
Status: Duplicate (was: Available)
I just tried and I think we're facing the same issue as  https://github.com/WebBluetoothCG/web-bluetooth/issues/220 because it works fine when restarting Bluetooth on Android.

Sign in to add a comment