From e8b5739447cce2adc1e117e8b1a05506bd7b5497 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 13 Apr 2020 13:33:45 -0500 Subject: [PATCH] add optionalServices this fixes a secruity permission issue on chromimum on ubuntu --- src/Connection.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Connection.tsx b/src/Connection.tsx index b82a39a7..a02a1628 100644 --- a/src/Connection.tsx +++ b/src/Connection.tsx @@ -72,6 +72,7 @@ class Connection extends React.Component } this.device = await navigator.bluetooth.requestDevice({ filters: [{ services: [pybricksServiceUUID] }], + optionalServices: [bleNusServiceUUID], }); if (this.device.gatt === undefined) { throw Error('Device does not support GATT');