pxt-calliope/docs/reference/control/device-name.md

302 B

Device Name

Gets a friendly name for the device derived from the its serial number.

control.deviceName();

This is an advanced API. For more information, see the @boardname@ runtime messageBus documentation.