-
Notifications
You must be signed in to change notification settings - Fork 931
Description
Hi,
I am having tremendous issues with nested submessages with repeating submessages
I have a proto of which looks like this:
syntax = "proto3";
package messages.v1;
message DeviceReading {
message Value {
uint64 time = 1;
float value = 2;
}
enum Type {
GAUGE = 0;
COUNTER = 1;
}
string name = 1;
Type type = 2;
string unit = 3;
string input = 4;
string application = 5;
repeated Value values = 6;
}
message DeviceReadings {
repeated DeviceReading readings = 1;
}
I can make messages of which contain Device Reading with no issue, but when I try to pack them into DeviceReadings i get submsg size changed errors. And in the occations I don't get those I get core dumps. Is there some sample code I can view or can someone point me in the proper direction. I can provide source code upon request.