The Automation section in the Generic Sensor API specification was rewritten and several terms and concepts have changed.
This commit adapts the Ambient Light Sensor spec to the changes:
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 "ambient-light" entry in MockSensorType and an appropriate virtual sensor metadata entry.
This is enough to integrate properly with the Generic Sensor spec and allow Ambient Light virtual sensors to be created and used.
The Automation section in the Generic Sensor API specification was rewritten and several terms and concepts have changed.
This commit adapts the Ambient Light Sensor spec to the changes:
This is enough to integrate properly with the Generic Sensor spec and allow Ambient Light virtual sensors to be created and used.
Fixes #86.
Preview | Diff