Checks if a firmware package filename is compatible with a device based on the provided FWID, Stack Info, or Hardware Description.
This function is useful for determining whether a firmware package can be installed on a device.
If you provide Stack Info, use the old firmware package filename.
If you provide FWID or Hardware Description, use the new firmware package filename.
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 FWID with an old firmware package filename.
Parameters
filename: string
The firmware package filename (either old or new).
Checks if a firmware package filename is compatible with a device based on the provided FWID, Stack Info, or Hardware Description. This function is useful for determining whether a firmware package can be installed on a device.
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 FWID with an old firmware package filename.