src/AHTxx.cpp
/**************************************************************/
/*
  softReset(): Restart sensor, without power off

  NOTE:
  - takes 20ms
  - all registers set to default
*/
Restart sensor, without power off
NOTE:
takes 20ms
all registers set to default
Restart sensor without power off NOTE : takes 20ms all registers set to default
bool AHTxx::softReset() {
  Wire.beginTransmission(_address);
  Wire.write(AHTXX_SOFT_RESET_REG);
  if (Wire.endTransmission(true) != 0) {
	return false;  
  }
  delay(AHTXX_SOFT_RESET_DELAY);
  return ((setNormalMode() == true) && (_getCalibration() == AHTXX_STATUS_CTRL_CAL_ON));  
}
bool AHTxx :: softReset ( ) { Wire . beginTransmission ( _address ) ; Wire . write ( AHTXX_SOFT_RESET_REG ) ; if ( Wire . endTransmission ( true ) != 0 ) { return false ; } delay ( AHTXX_SOFT_RESET_DELAY ) ; return ( ( setNormalMode ( ) == true ) && ( _getCalibration ( ) == AHTXX_STATUS_CTRL_CAL_ON ) ) ; }
softReset(): Restart sensor, without power off
NOTE:
 takes 20ms
 all registers set to default
softReset () : Restart sensor without power off NOTE : takes 20ms all registers set to default
//collision on I2C bus, sensor didn't return ACK //set mode & check calibration bit