|
FireSync API
|
| 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.
| node | Node object. |
| type | Type of firmware to write |
| stream | Source of firmware data. |
| size | Size of firmware data |
| progress | Optional progress callback (can be kNULL). |
| context | Callback context. |