FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kNode_LoadFirmware ( kNode  node,
kNodeFirmwareType  type,
const kChar path,
kCallbackFx  progress,
kPointer  context 
)

Loads firmware from a local file to non-volatile storage.

If the remote node supports progress feedback, the specified callback will be invoked to provide updates on the progress of the operation. The callback 'args' parameter will receive a k32u value representing the percentage completed.

When PL programs are changed, some existing node settings may be invalidated as a result. These violations are not automatically addressed. Accordingly, it is recommended to clear node settings and reconfigure from scratch after switching configurations.

Parameters
nodeNode object.
typeType of firmware to write
pathPath to local firmware file.
progressOptional progress callback (can be kNULL).
contextCallback context.
Returns
Operation status.