You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > ASI Library > getName

21.7.1 getName

name = port:getName()

Returns the name of the port as a string, as given by the platform. Typical examples are the following:

Platform

Port name

TI-Nspire CX

COM1

COM2

Windows

COM1

COM9

COM12

MacOS

usbmodem14121

usbmodem00001

Introduced in platform.apiLevel = '2.7'.