FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kNode_LoadFirmwareFromStream ( kNode  node,
kNodeFirmwareType  type,
kStream  stream,
kSize  size,
kCallbackFx  progress,
kPointer  context 
)

Loads firmware from a local stream 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
streamSource of firmware data.
sizeSize of firmware data
progressOptional progress callback (can be kNULL).
contextCallback context.
Returns
Operation status.