Function findBySerialNumber

Convenience method to get the device with the specified serial number, or undefined if no such device is present.

  • Parameters

    • serialNumber: string

    Returns Promise<undefined | Device>