RUI3 (RAK Unified Interface 3) - RAK4631
Firmware Version

Functions

String get ()
 
bool set (String version)
 

Detailed Description

Function Documentation

◆ get()

String get ( )
Description
This api allow user to get the firmware version
Syntax
api.system.firmwareVersion.get() api.system.firmwareVer.get()
Returns
firmware version(Type: String)
Example
void setup()
{
  Serial.begin(115200);
}

void loop()
{
      Serial.printf("Firmware Version: %s\r\n", api.system.firmwareVersion.get().c_str());
      Serial.printf("Firmware Version: %s\r\n", api.system.firmwareVer.get().c_str());
  delay(1000);
}

◆ set()

bool set ( String  version)
Description
This api allow user to set the firmware version
Syntax
api.system.firmwareVer.set(version)
Parameters
versionfirmware version for user to be set(Type: String)
Returns
bool
Return values
TRUEfor successfully set firmware version
FALSEfor set firmware version fail
Example
void setup()
{
  Serial.begin(115200);
}

void loop()
{
      String version = "your version";
      api.system.firmwareVer.set(version);
      delay(1000);
}