[web-bluetooth] API to facilitate the grabbing of all primary services `getAllPrimaryServices` (#507)

enahsor has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth:

== API to facilitate the grabbing of all primary services `getAllPrimaryServices` ==
Hi. I think there should be a way to get all primary services attached to a device. I'm surprised this doesn't exist already.
I'm pretty new to this API and the only way I could figure out how to get services for a device is via `chrome://bluetooth-internals/#devices`. I don't particularly like that approach as it requires me to know the device beforehand.
eg
```
server.getAllPrimaryServices()
```
or 

```
device.getAllPrimaryServices()
```


Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/507 using your GitHub account

Received on Tuesday, 28 July 2020 01:18:50 UTC