RUI3 (RAK Unified Interface 3) - RAK4631
rak1906

Public Member Functions

 rak1906 ()
 
bool init (void)
 This function enabled the RAK1906 sensor and puts the device into standby mode / sleep mode for lowest power consumption. More...
 
bool update (void)
 This function will trigger the RAK1906 to update the Environment values, after the values are updated theRAK1906 will go back to power saving mode. More...
 
float temperature (void)
 This function will trigger the RAK1906 to return the latest TEMPERATURE value. More...
 
float humidity (void)
 This function will trigger the RAK1906 to return the latest HUMIDITY value. More...
 
float pressure (void)
 This function will trigger the RAK1906 to return the latest AIR PRESSURE value. More...
 
float gas (void)
 This function will trigger the RAK1906 to return the latest GAS value. More...
 

Data Fields

int32_t tmpTemperature
 
int32_t tmpHumidity
 
int32_t tmpPressure
 
int32_t tmpGas
 

Constructor & Destructor Documentation

◆ rak1906()

rak1906 ( )

Member Function Documentation

◆ init()

bool init ( void  )

This function enabled the RAK1906 sensor and puts the device into standby mode / sleep mode for lowest power consumption.

Returns
bool True if successfully query and identify RAK1906 module. FALSE if RAK1906 init failed

◆ update()

bool update ( void  )

This function will trigger the RAK1906 to update the Environment values, after the values are updated theRAK1906 will go back to power saving mode.

Returns
bool True if values updated successfully. FALSE if update failed

◆ temperature()

float temperature ( void  )

This function will trigger the RAK1906 to return the latest TEMPERATURE value.

Returns
float

◆ humidity()

float humidity ( void  )

This function will trigger the RAK1906 to return the latest HUMIDITY value.

Returns
float

◆ pressure()

float pressure ( void  )

This function will trigger the RAK1906 to return the latest AIR PRESSURE value.

Returns
float

◆ gas()

float gas ( void  )

This function will trigger the RAK1906 to return the latest GAS value.

Returns
float

Field Documentation

◆ tmpTemperature

int32_t tmpTemperature

◆ tmpHumidity

int32_t tmpHumidity

◆ tmpPressure

int32_t tmpPressure

◆ tmpGas

int32_t tmpGas