Description

s_get_sernNo() returns the serial number of the device. This is a unique number set by the manufacturer and consist of a string in the form ‘YY.XXXXXXXX’. YY: year of production XX: unique serial number. The serial number is read only.

Syntax

s_get_sernNo();

Parameters

none

Returns

String – representing the year of production and unique serial number of the device.

Example Code

This example shows how to read and print the serial number of the device.

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

void loop () 
{
}

Notes and Warnings

See also

SAMC21_CAN