- From: Reilly Grant via GitHub <sysbot+gh@w3.org>
- Date: Wed, 13 Oct 2021 22:27:05 +0000
- To: public-web-bluetooth-log@w3.org
Looking at the sample code I see that there are indeed multiple calls to readValue() being made in parallel, one for each characteristic: ```javascript return this.getGATTServer() .then(server => server.getPrimaryService(serviceUuid)) .then(service => service.getCharacteristics()) .then(characteristics => { return Promise.all( characteristics .filter(characteristic => characteristicUuids.includes(characteristic.uuid)) .map(async characteristic => ({ uuid: characteristic.uuid, value: await characteristic.readValue(), })), ) }) .then(values => values.map(value => ({ uuid: value.uuid, value: characteristicResolvers[value.uuid](value.value), }))) ``` (From https://github.com/kasparsd/sensor-pilot/blob/master/src/ble-device.js.) -- GitHub Notification of comment by reillyeon Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/563#issuecomment-942766637 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 October 2021 22:27:07 UTC