Streaming data with ProtoBuf to log file with a header
问题 I am trying to stream data to a log file on an SD card on a microcontroller that reads from some sensors and stores the value in the file. To serialize the data I will be using NanoPB, the protobuf implementation for C which is quite resource efficient. The log file has the following structure: It needs to write a short header composed of a GUID, and a firmware version. After the header, the stream of data should be continuous and it should log the fields from the sensors but not the header