MetaWear C++ API  0.20.0
C++ implementation of the MetaWear protocol
Public Attributes | List of all members
MblMwLogDownloadHandler Struct Reference

Callback functions for handling notifications from the logger. More...

#include <logging.h>

Public Attributes

void * context
 Pointer to additional data for the callback functions.
 
void(* received_progress_update )(void *context, uint32_t entries_left, uint32_t total_entries)
 Called when a progress update is received. More...
 
void(* received_unknown_entry )(void *context, uint8_t id, int64_t epoch, const uint8_t *data, uint8_t length)
 Called when a log entry has been received but cannot be matched to a log handler. More...
 
MblMwFnData received_unhandled_entry
 Called when a log entry has been received but has no MblMwFnData pointer to forward the data to.
 

Detailed Description

Callback functions for handling notifications from the logger.

Member Data Documentation

◆ received_progress_update

void(* MblMwLogDownloadHandler::received_progress_update) (void *context, uint32_t entries_left, uint32_t total_entries)

Called when a progress update is received.

Parameters
contextPointer to the context field
entries_leftNumber of entries left to download
total_entriesTotal number of entries

◆ received_unknown_entry

void(* MblMwLogDownloadHandler::received_unknown_entry) (void *context, uint8_t id, int64_t epoch, const uint8_t *data, uint8_t length)

Called when a log entry has been received but cannot be matched to a log handler.

Parameters
contextPointer to the context field
idId of the received log entry
epochNumber of milliseconds since epoch
dataByte array holding the data
lengthLength of the array

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