Skip to content

Releases: elixir-sensors/sht4x

v0.2.3

16 Jan 21:52
a503bf7
Compare
Choose a tag to compare

Changed

  • Updated dependencies.
  • circuits_i2c - either version 1.x or 2.x can now be used with this library.

v0.2.2

28 Nov 21:43
Compare
Choose a tag to compare

Changed

  • Flag bad values from the SHT4X so that they aren't used. Bad values include
    the 0x8000/0x8000 bad report and values outside of 0-100 RH and -40-125C
  • Add SHT4X.soft_reset/1

v0.2.1

30 Aug 22:50
a612a91
Compare
Choose a tag to compare

[0.2.1] - 2023-08-30

Bug Fixes

  • SHT4X.Measurement's types have been updated to ensure :humidity_rh and :temperature_c are float()
  • The hard-coded :unusable measurement value has been updated to return floats as expected.

v0.2.0

14 Jul 20:47
Compare
Choose a tag to compare

Changed

  • SHT4X regularly polls temperature and humidity at 5 second intervals
    (configurable). Regular polling is required for temperature compensation
    algorithms.
  • The SHT4X.measure/1 function is now SHT4X.get_sample/1 to reflect that it
    returns the latest sample rather than polling the sensor. The SHT4X.Measurement
    struct contains a timestamp and quality information to indicate how stale it
    is. Staleness could be due to communication issues with the sensor or just
    waiting for the next poll time.
  • The sensor's serial number is not polled on init. This means that I2C failures
    or retry delays won't delay or fail startup. They likely will affect the
    regular polling if they don't resolve themselves.

Added

  • SHT4X.serial_number/1 to get the sensor's unique serial number
  • The sensor is immediately polled for a temperature. Previously the first
    temperature measurement was delayed until the interval timer expired (default 5
    seconds).

v0.1.4

01 Feb 21:43
2179a80
Compare
Choose a tag to compare

Improvements

  • Catch errors from the transport initialization (thanks to @doawoo)

v0.1.3

10 Dec 20:16
55039f6
Compare
Choose a tag to compare

Improvements

  • Correct typespecs
  • Change use Bitwise to import Bitwise per warning
  • Improve docs
  • Allow users to pass in a :retries option for the I2C transport (thank you @doawoo)
  • Update dependencies

v0.1.2

12 Feb 03:05
068302c
Compare
Choose a tag to compare

Improvements

  • Simplified the transport-related code
  • Refactor the top-level module

Added

  • typed_struct
  • circuit_i2c

Removed

  • i2c_server
  • mox

v0.1.1

28 Aug 02:32
Compare
Choose a tag to compare

Added

  • Derived dew_point_c value

v0.1.0

23 Aug 13:44
Compare
Choose a tag to compare
v0.1.0 release