Description:
| Returns | Range | Description |
|---|---|---|
| portId | 1 ... 6 |
communication-port in use |
Returns the current communication-port in use.
| portId |
|---|
| PORT_ID_SERIAL_0 |
| PORT_ID_SERIAL_1 |
| PORT_ID_USB |
| PORT_ID_I2C |
| PORT_ID_SPI |
| PORT_ID_ETHERNET |
Example
(IO.getCurrentCommunicationPort() == IO.PORT_ID_USB)
If this expression evaluates to true, the current communication-port is the USB port.
See also:
Copyright © demmel products gmbh. All rights reserved.