Log Management API > BS2_GetImageLog


BS2_GetImageLog

[+ 2.5.0] Gets image logs using event ID.

Declaration

#include "BS_API.h"
 
int BS2_GetImageLog(void* context, uint32_t deviceId, uint32_t eventId, uint8_t** imageObj, uint32_t* imageSize);

Paramter

NOTE
The logsObj variable needs to return the memory to the system by the BS2_ReleaseObject function after being used.

Return Value

If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.