GetSensor¶
-
virtual PSensor IController::GetSensor(const std::string &name) = 0¶
Gets the sensor with the specified name.
- Parameters
name – Name of the sensor.
- Returns
PSensor – The sensor with the specified name.
- Throws
CInvalidArgumentException– Sensor with specified name does not exist.CCommunicationErrorException– Protocol error.CConnectionLostException– Connection to controller lost.CRebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CIncompatibleException– Incompatible firmware version loaded.