RUI3 (RAK Unified Interface 3) - RAK4631

Functions

float get (void)
 

Detailed Description

Function Documentation

◆ get()

float get ( void  )
Description
Get the current battery voltage (Unit: V)
Syntax
api.system.bat.get()
Returns
float
Example
    void setup()
    {
      Serial.begin(115200);
    }

    void loop()
    {
      Serial.printf("Battery Voltage: %f\r\n", api.system.bat.get());
      delay(1000);
    }