DLAPI 4.5.1.0
An API for controlling Aluma branded cameras
dl::V2::IFirmwareManager Class Referenceabstract

#include <dlapi.h>

Public Member Functions

virtual IPromisePtr upload (const char *firmwarePath)=0
 Uploads firmware to the camera from the provided file path.
 
virtual const char * getFPGAWorkerStatus () const =0
 

Member Function Documentation

◆ getFPGAWorkerStatus()

virtual const char * dl::V2::IFirmwareManager::getFPGAWorkerStatus ( ) const
pure virtual

◆ upload()

virtual IPromisePtr dl::V2::IFirmwareManager::upload ( const char * firmwarePath)
pure virtual

Uploads firmware to the camera from the provided file path.

Parameters
firmwarePathA null-terminated string representing the path to the firmware file to upload
Returns
IPromisePtr pointer to promise for monitoring the status of the asynchronous operation.

Note: ICamera instances from DLAPI 4.3 onwards support this method. Once you've initialized a camera, you can cast the ICameraPtr instance to a IFirmwareManagerPtr and call upload() to upload new firmware to the camera as follows:

void uploadFirmware(dl::ICameraPtr pCamera, const char* firmwarePath)
{
// cast to the new Firmware Manager interface
auto pFM = dynamic_cast<dl::V2::IFirmwareManager*>(pCamera);
// Ensure your driver version supports this interface
if (!pFM) return;
// Execute the upload, retrieve the promise for monitoring progress
auto pPromise = pFM->upload(firmwarePath);
// Monitor progress until complete, and release the promise.
handlePromise(pPromise);
}
Camera interface class.
Definition dlapi.h:1958
Definition dlapi.h:2372
virtual IPromisePtr upload(const char *firmwarePath)=0
Uploads firmware to the camera from the provided file path.

The documentation for this class was generated from the following file: