This library provides functions to handle Sensirion SHT31 Smart Gadget sensors via BLE interface. It requires the ble-con-manager-mt library.
It provides high level functions to establish connections to multiple sensors. This implies following workflow when using the library:
This library provides functions to handle Sensirion SHT31 Smart Gadget sensors via BLE interface. It requires the ble-con-manager-mt library.
It provides high level functions to establish connections to multiple sensors. This implies the following workflow when using the library:
This library is based on the ble-con-manager-mt library which requires the user to implement a number of callbacks. These needs to be forwarded to the ble-sht31-mt specific library functions. Copy the following block to the main.p file of your project.
Called every time when one of the following events happen:
Filter types used for scanning for a SHT31 Smart Gadget sensor
Sensor events
Sensor states
Sensor errors
Configuration of a SHT31 Smart Gadget sensor
Structure holding the sensor measurement values
Initializes the SHT31Ble Smart Gadget library
Adds a SHT31Ble Smart Gadget sensor configuration which will be used for the subsequent connection process (using SHT31Ble_Connect()).
Initiates the connection to a previously added sensor
Reads measurement data from a sensor
Enable automatic sending of measurements from the sensor
Initiates the disconnection from a sensor
Removes a previously added sensor from the configuration.
Gets the current sensor state
Gets the current measurement values
Closes the SHT31Ble Smart Gadget library
Extracts the information from a SHT31BLE_EVT_ERROR event response
Extracts the information from a SHT31BLE_EVT_DATA event response