• Control the power of a LIN device

    Parameters

    • power: boolean

      The power state to set

    • Optionaldevice: string

      The optional device name when multiple devices are connected

    Returns Promise<void>

    • Returns a promise that resolves when power is set

    This function is only available on LinCable devices (https://app.whyengineer.com/docs/um/hardware/lincable.html)

    // Set power to true
    await linPowerCtrl(true);

    // Set power to false on specific device
    await linPowerCtrl(false, 'Device1');