Function rs2_update_firmware_cpp

Function Documentation

void rs2_update_firmware_cpp(const rs2_device *device, const void *fw_image, int fw_image_size, rs2_update_progress_callback *callback, rs2_error **error)

Update device to the provided firmware, the device must be extendable to RS2_EXTENSION_UPDATABLE. This call is executed on the caller’s thread and it supports progress notifications via the optional callback.

Parameters:
  • device[in] Device to update

  • fw_image[in] Firmware image buffer

  • fw_image_size[in] Firmware image buffer size

  • callback[in] Optional callback for update progress notifications, the progress value is normailzed to 1

  • error[out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored