Function isFirmwarePackageFilenameCompatibleWithDevice

  • Checks if a firmware package filename is compatible with a device, based on the provided FWID or a device object with a Hardware Description and optionally an Integro Variant. This function helps determine whether a firmware package can be installed on a device.

    • If the device includes Stack Info, the old firmware package filename is used.
    • If an FWID or a device with a Hardware Description is provided, the new firmware package filename is used.

    Returns

    true if the firmware package filename is compatible with the device; otherwise, false.

    Throws

    Throws an error if an invalid combination is provided, such as using an old firmware package filename with an FWID.

    Parameters

    • filename: string

      The firmware package filename (either old or new).

    • firmwareIdOrDevice: string | Pick<Device, "hardwareDescription" | "integroVariant" | "stackInfo">

      The FWID or device object (with hardwareDescription, stackInfo, and optionally integroVariant) to check compatibility.

    Returns boolean

Generated using TypeDoc