none
More categories? RRS feed

  • Question

  • Hello again.

    Am I limited to using one of the existing categories for a sensor ? If no, then how do I enumerate all available categories ? GetSensorsByCategory requires that you know the category CLSID. 

    Best Regards.


    Michael
    Monday, October 19, 2009 2:27 PM

Answers

  • Hello Michael,

    Yes, you are expected to know the category ID for the category of sensors you are interested in enumerating. In order to understand the values for the properties and data fields from sensor devices, you will have to know about them before hand; so you can know what they mean and how to interpret them.

    Having said that, there is a way to enumerate all the categories of all the existing sensors - invoke GetSensorsByCategory(SENSOR_CATEGORY_ALL, ...) and for each sensor, invoke GetCategory.

    Let us know if you have any further questions.

    Thanks,
    Prasanna
    • Marked as answer by WindowsNT Tuesday, October 20, 2009 2:12 PM
    Tuesday, October 20, 2009 12:49 AM
    Answerer