Description

s_get_app_name() returns the application name of the currently running application. This is basically the name of the sketch (.ino) file. Find further details and options in the chapter ‘Application name, version and target’ of the users manual.
The application name is read only.

Syntax

s_get_app_name();

Parameters

none

Returns

String – representing the name of the application.

Example Code

This example shows how to read and print the name of the current application.

void setup()
{  
  Serial.begin();
  while (!Serial) 
  {
    yield(); // wait for PC CAN2SER-monitor to open 
  }
  Serial.println(" - appl. name:     "+ BOOTLOADER_SETTING.s_get_app_name());
}

void loop () 
{
}

Notes and Warnings

See also

SAMC21_CAN
Chapter ‘Application name, version and target’ of the users manual