PebbleOS
Loading...
Searching...
No Matches
Enumerations | Functions
data_logging_service.h File Reference
#include <applib/data_logging.h>
#include <pbl/util/uuid.h>
#include <kernel/pebble_tasks.h>

Enumerations

enum  DlsSystemTag {
  DlsSystemTagAnalyticsDeviceHeartbeat = 78 , DlsSystemTagAnalyticsAppHeartbeat = 79 , DlsSystemTagAnalyticsEvent = 80 , DlsSystemTagActivityMinuteData = 81 ,
  DlsSystemTagActivityAccelSamples = 82 , DlsSystemTagActivitySession = 84 , DlsSystemTagProtobufLogSession = 85 , DlsSystemTagAnalyticsNativeHeartbeat = 87
}
 Tags used by system services, all registered with UUID_SYSTEM. More...
 

Functions

void dls_init (void)
 Initialize the data logging service.
 
bool dls_initialized (void)
 Check whether dls_init() has run.
 
void dls_clear (void)
 Delete all sessions, both in memory and in flash.
 
void dls_pause (void)
 Stop the periodic flush of sessions to the phone.
 
void dls_resume (void)
 Restart the periodic flush of sessions to the phone.
 
void dls_inactivate_sessions (PebbleTask task)
 Inactivate all non-system sessions created by a task.
 
DataLoggingSession * dls_create_current_process (uint32_t tag, DataLoggingItemType item_type, uint16_t item_size, void *buffer, bool resume)
 Create a buffered session owned by the current process.
 
DataLoggingSession * dls_create (uint32_t tag, DataLoggingItemType item_type, uint16_t item_size, bool buffered, bool resume, const Uuid *uuid)
 Create a session.
 
DataLoggingResult dls_log (DataLoggingSession *s, const void *data, uint32_t num_items)
 Append items to a session.
 
void dls_finish (DataLoggingSession *s)
 Finish a session.
 
bool dls_is_session_valid (DataLoggingSession *logging_session)
 Check whether a pointer refers to an existing session.
 
void dls_send_all_sessions (void)
 Send all stored data to the phone now instead of at the next periodic flush.
 
bool dls_get_send_enable (void)
 Check whether sending to the phone is enabled.
 
void dls_set_send_enable_pp (bool setting)
 Enable or disable sending, as requested by the phone.
 
void dls_set_send_enable_run_level (bool setting)
 Enable or disable sending, as requested by the run level.