w3c / proximity

Proximity
https://www.w3.org/TR/proximity/
Other
12 stars 13 forks source link

Rewrite Automation section after w3c/sensors#470 #57

Closed JuhaVainio closed 10 months ago

JuhaVainio commented 10 months ago

The Automation section in the Generic Sensor API specification was rewritten and several terms and concepts have changed.

This commit adapts the Proximity Sensor spec to the changes:

This is enough to integrate properly with the Generic Sensor spec and allow Proximity virtual sensors to be created and used.

Fixes #56.


Preview | Diff

rakuco commented 10 months ago

Remove references to "mock sensor type", "mock sensor reading values" and the "MockSensorType" enum. Define an entry in the per-type virtual sensor metadata map whose key is what used to be the "proximity" entry in MockSensorType and an appropriate virtual sensor metadata entry. This is enough to integrate properly with the Generic Sensor spec and allow Proximity virtual sensors to be created and used.

This should be formatted as a list here and in the commit message.

JuhaVainio commented 10 months ago

Remove references to "mock sensor type", "mock sensor reading values" and the "MockSensorType" enum. Define an entry in the per-type virtual sensor metadata map whose key is what used to be the "proximity" entry in MockSensorType and an appropriate virtual sensor metadata entry. This is enough to integrate properly with the Generic Sensor spec and allow Proximity virtual sensors to be created and used.

This should be formatted as a list here and in the commit message.

Done