Re: [sensors] Sensor discovery (#7)

@anssiko sure. I'll try experimenting with several approaches and report my experiments.

One thing I thought of: there is a certain amount of overlap between sensor discovery and WebHID. Since this is the Sensors and Device working group, maybe some kind of merge between Generic Sensor discovery and WebHID should be considered, either in the form of extending WebHID or creating a new HID that replaces WebHID and unifies devices and sensors.
For example, `navigator.hid.getDevices()` could be pre-populated with things like `Magnetometer` or `Accelerometer` after calling `navigator.permissions.query`. Generic Sensor is extensible and future-proof, but we shouldn't assume that the future holds that sensor and device are exclusive the way they are today.

-- 
GitHub Notification of comment by Symbitic
Please view or discuss this issue at https://github.com/w3c/sensors/issues/7#issuecomment-1836538649 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 1 December 2023 17:53:29 UTC