I saw your recent DCCL update about dynamic conditions - that looks
awesome, and I was wondering if we could use it to achieve the following.
We have a message with a repeated field for which we set the max_repeat
attribute to fit in the max_bytes of the message - consider the
following message as a minimal example:
Now, what we would like to do is to send the same message over different
communication channels having different length constraints (WiFi,
acoustic and Iridium, in particular) - do you think it would make sense
to dynamically adjust the max_bytes and max_repeat attributes based on
the value of a field that will contain the type of channel used? Say
something along the lines of the following:
message Test {
option (dccl.msg) = {
id: 2,
max_bytes: 82,
codec_version: 4
dynamic_conditions: { max_bytes: "if this.channel == "WiFi"; then
return 1000000; else if this.channel == "Acoustic"; then return 60; ...
end" }
};
On 9/21/22 19:57, Fenucci, Davide wrote: