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

21.7.2 getIdentifier

identifier = port:getIdentifier()

Returns the identifier associated to the port as a string, as given by the platform. Typical examples are the following:

Platform

Port name

TI-Nspire CX

COM1

Windows

COM1

COM9

Mac

/dev/cu.usbmodem14121

/dev/cu.usbmodem00001

Introduced in platform.apiLevel = '2.7'.