RUI3 (RAK Unified Interface 3) - RAK4631

Functions

String get ()
 
bool set (String model)
 

Detailed Description

Function Documentation

◆ get()

String get ( )
Description
This api allow user to get the model ID
Syntax
api.system.modelId.get() api.system.hwModel.get()
Returns
model ID(Type: String)
Example
    void setup()
    {
      Serial.begin(115200);
    }

    void loop()
    {
      Serial.printf("Model ID: %s\r\n", api.system.modelId.get().c_str());
      Serial.printf("Model ID: %s\r\n", api.system.hwModel.get().c_str());
      delay(1000);
    }

◆ set()

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

    void loop()
    {
      String model_id = "your model"
      api.system.hwModel.set(model_id);
      delay(1000);
    }