We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f3bdf9 commit a46e5cfCopy full SHA for a46e5cf
1 file changed
godice.js
@@ -270,14 +270,14 @@ class GoDice {
270
filters: [{ namePrefix: 'GoDice_' }],
271
optionalServices: ['6e400001-b5a3-f393-e0a9-e50e24dcca9e']
272
})
273
- .then(device => {
+ .then(async device => {
274
this.GlobalDeviceId = device.id.toString();
275
this.bluetoothDevice = device;
276
var _self = this
277
this.bluetoothDevice.addEventListener('gattserverdisconnected', function() {
278
_self.onDiceDisconnected(_self.GlobalDeviceId, _self)
279
280
- this.connectDeviceAndCacheCharacteristics();
+ await this.connectDeviceAndCacheCharacteristics();
281
});
282
}
283
0 commit comments