mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
BME280: Add string based constructor
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
ebe84f96b2
commit
b675b89e1b
@ -41,6 +41,12 @@ BME280::BME280(int bus, int addr, int cs) :
|
||||
{
|
||||
}
|
||||
|
||||
BME280::BME280(std::string initStr) :
|
||||
BMP280(initStr)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BME280::~BME280()
|
||||
{
|
||||
}
|
||||
|
@ -83,6 +83,13 @@ namespace upm {
|
||||
BME280(int bus=BME280_DEFAULT_I2C_BUS, int addr=BME280_DEFAULT_ADDR,
|
||||
int cs=-1);
|
||||
|
||||
/**
|
||||
* Instantiates BME280 Digital Sensor based on a given string.
|
||||
*
|
||||
* @param initStr string containing specific information for BME280 initialization.
|
||||
*/
|
||||
BME280(std::string initStr);
|
||||
|
||||
/**
|
||||
* BME280 Destructor.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user