Re: [sensors] Sensor discovery (#7)

I put more thought into this and significantly redesigned the proposed interface. Instead of working like low-level OS drivers, it is centered around sensor readings and a `SensorBackend` class to provide them. It's much more application-friendly as well as more secure, since permissions and data-handling are ultimately handled by the Sensor.

The idea came from Qt's sensor library. I've been using it for some recent projects and found it to be a natural and enjoyable way of interfacing with sensors. This should be ready for serious consideration.

<https://gist.github.com/Symbitic/7e7f0722da6357aaa2d5a2a2df999c4d>

Any thoughts?

cc @anssiko @larsgk 

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


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

Received on Tuesday, 17 September 2024 16:54:22 UTC