Function getDeviceName

  • Get the device name of the specified index

    Parameters

    • index: number

      Index of device to be named

    Returns string | null

    The name of the device. Max length 256 bytes. May be null.

    console.log(rtljs.getDeviceName(0)); // Generic RTL2832U OEM