You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I cannot seem to use bluetooth + dart + chrome on my ubuntu desktop. I have a working BT adapter, and I can pair to devices using the blueman manager. I can also access the BT stack from Java via the bluecove libs (bluecove-gpl-2.1.0.jar, bluecove-emu-2.1.0.jar, bluecove-2.1.0.jar).
Second, I cannot seem to catch the exception that is being thrown in dart:core-patch/object_patch.dart:45. The stack trace is being printed by somewhere else in the stack, as neither my catch clause nor my onError clause are entered into.
Is bluetooth + dart + chrome even supported on ubuntu?
Code
library foo.bluetooth;
import 'package:logging/logging.dart';
import 'package:chrome/chrome_app.dart' as chrome;
final Logger log = new Logger("FooBluetooth");
class FooBluetoothService {
static void init() {
try{
if(chrome.bluetooth == null){ throw new StateError("Chrome.bluetooth extensions not present");}
chrome.bluetooth.onAdapterStateChanged.listen((chrome.AdapterState e) {
log.info("Bluetooth Adapter: ${e}");
}, onError: (e){
log.severe("Bluetooth Adapter Error: ${e}");
});
}catch(e){
log.severe("Bluetooth Adapter Error: ${e}");
}
}
}
Ubuntu 14.x:
Linux green 3.13.0-46-generic #77-Ubuntu SMP Mon Mar 2 18:23:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Adapter
Bus 005 Device 005: ID 0a5c:2148 Broadcom Corp. BCM92046DG-CL1ROM Bluetooth 2.1 Adapter
Bluez Libs
ii bluez 4.101-0ubuntu13.1 amd64 Bluetooth tools and daemons
ii bluez-alsa:amd64 4.101-0ubuntu13.1 amd64 Bluetooth ALSA support
ii bluez-cups 4.101-0ubuntu13.1 amd64 Bluetooth printer driver for CUPS
ii bluez-gstreamer 4.101-0ubuntu13.1 amd64 Bluetooth GStreamer support
The text was updated successfully, but these errors were encountered:
This request has been closed, but at least have some support for sniffing dart platform and OS versions would let us gracefully degrade experience. 3357 should definitely be reopened until such time Google can guarantee everything will always work perfectly on every platform. ;)
Summary
There are two issues here.
First, I cannot seem to use bluetooth + dart + chrome on my ubuntu desktop. I have a working BT adapter, and I can pair to devices using the blueman manager. I can also access the BT stack from Java via the bluecove libs (bluecove-gpl-2.1.0.jar, bluecove-emu-2.1.0.jar, bluecove-2.1.0.jar).
Second, I cannot seem to catch the exception that is being thrown in dart:core-patch/object_patch.dart:45. The stack trace is being printed by somewhere else in the stack, as neither my catch clause nor my onError clause are entered into.
Is bluetooth + dart + chrome even supported on ubuntu?
Code
Error
System
Ubuntu 14.x:
Linux green 3.13.0-46-generic #77-Ubuntu SMP Mon Mar 2 18:23:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Adapter
Bus 005 Device 005: ID 0a5c:2148 Broadcom Corp. BCM92046DG-CL1ROM Bluetooth 2.1 Adapter
Bluez Libs
ii bluez 4.101-0ubuntu13.1 amd64 Bluetooth tools and daemons
ii bluez-alsa:amd64 4.101-0ubuntu13.1 amd64 Bluetooth ALSA support
ii bluez-cups 4.101-0ubuntu13.1 amd64 Bluetooth printer driver for CUPS
ii bluez-gstreamer 4.101-0ubuntu13.1 amd64 Bluetooth GStreamer support
The text was updated successfully, but these errors were encountered: