Log Management API > BS2_GetImageLog

[+ 2.5.0] Gets image logs using event ID.


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


  • [In] context : Context
  • [In] deviceId : Device ID
  • [In] eventId : Event ID
  • [Out] imageObj : Pointer to store the image log
  • [Out] imageSize : Size of image log

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.