- From: François Beaufort via GitHub <sysbot+gh@w3.org>
- Date: Tue, 22 Nov 2016 08:53:31 +0000
- To: public-web-bluetooth-log@w3.org
FYI, using `Promise.all` will run `wait `and
`server.getPrimaryService` at the same time. You may want to do
something like this below.
```js
console.log('server device: '+this.server.device);
return wait(3000)
.then(_ => {
console.log('after 3 second ');
})
.then(_=> this.server.getPrimaryService(0x180f))
.then(service => {
console.log('service get');
console.log(service.uuid);
return this._cacheCharacteristic(service, 'battery_level');
})
.then(values => { console.log('value' + values); });
--
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at
https://github.com/WebBluetoothCG/web-bluetooth/issues/336#issuecomment-262182290
using your GitHub account
Received on Tuesday, 22 November 2016 08:53:39 UTC