// If enabled, the sensor will return an error status.
// This element can be combined with the SensorText element in order to show an error message.
// Default is 0.
If enabled, the sensor will return an error status.
This element can be combined with the SensorText element in order to show an error message.
Default is 0.
// If enabled the sensor will return an error status . // This element can be combined with the SensorText element in order to show an error message . // Default is 0 .
func (sr *SensorResults) SetError(err bool) *SensorResults {
	sr.Error = "0"
	if err {
		sr.Error = "1"
	}
	return sr
}
func ( sr * SensorResults ) SetError ( err bool ) * SensorResults { sr . Error = " " if err { sr . Error = " " } return sr }
If enabled, the sensor will return an error status.
If enabled the sensor will return an error status .