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'.