has_cap


Description:

[ Version ( since = "0.1.6" ) ]
public bool has_cap (SensorCap cap)

Returns the sensor metadata for a specific key.

Parameters:

this

a Sensor instance.

cap

a specified capability, e.g. cd_sensor_cap_lcd

Returns:

true if the sensor has the specified capability