Log Management API > BS2_StartMonitoringLog


Starts Real-time log streaming.

Declaration

#include "BS_API.h"
 
int BS2_StartMonitoringLog(void* context, uint32_t deviceId, OnLogReceived ptrLogReceived);

Parameter

  • [In] context : Context
  • [In] deviceId : Device ID
  • [In] ptrLogReceived : Callback function that is called when a new log is received

Return Value

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

See Also