Sensors: Extend Support for fetching Multiple Sensor Channels of same type #64262
Closed
jilaypandya
started this conversation in
RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context:
Certain Sensors can monitor multiple sensor channels of same type, for instance, lets take ambient temperature
Current Scenario:
Solution:
Would it be possible to extend the sensor api in order to pass an auxiliary parameter to select between various ambient temperatures(just as an example, this could be any sensor_channel)?
OR
Would end user have to use the data_ptr – Pointer to the device’s private data eventually and instantiate the sensor_device accordingly in order to pass this auxiliary information?
Beta Was this translation helpful? Give feedback.
All reactions