GetConnectedComPortInfo
async function GetConnectedComPortInfo(ctx: any): [{usbVendorId: number | undefined; usbProductId: number | undefined}]
The asynchronous function GetConnectedComPortInfo is used to obtain information about the connected serial interfaces. The function returns an array containing the vendor and product ID of the connected ports.
![]() | Browser compatibility The function is only compatible with Google Chrome and Microsoft Edge. |
Parameter
Name | Type | Description |
---|---|---|
ctx | any, Context | Asynchronous context object |
Return value
Type | Description |
---|---|
Object array, with the attributes "usbVendorId" and "usbProductId". |
NuGet package: Beckhoff.TwinCAT.HMI.Plastic.RFID
Available: from version 12.14.0
Usage: TC3 Plastic Application HMI projects