PebbleOS
Loading...
Searching...
No Matches
Data Structures
Protobuf log internals

Record header and session structure. More...

Data Structures

struct  PLogMessageHdr
 Header placed before the encoded payload in each record. More...
 
struct  PLogSession
 Protobuf log session, behind a ProtobufLogRef. More...
 

Detailed Description

Record header and session structure.


Data Structure Documentation

◆ PLogMessageHdr

struct PLogMessageHdr

Header placed before the encoded payload in each record.

Data Fields
uint16_t msg_size Size of the encoded payload in bytes.

◆ PLogSession

struct PLogSession

Protobuf log session, behind a ProtobufLogRef.

Data Fields
ProtobufLogConfig config Configuration, with the measurement types copied after the structure.
uint8_t * data_buffer Encoded data accumulated so far (a measurement set or events), wrapped into a payload in msg_buffer on flush.
pb_ostream_t data_stream Stream writing to data_buffer.
size_t max_data_size Maximum size of the accumulated data.
size_t max_msg_size Record size in bytes.
uint8_t * msg_buffer Record buffer: PLogMessageHdr followed by the encoded payload.
time_t start_utc UTC time the current data started.
ProtobufLogTransportCB transport Transport.