Open mkashwin opened 10 months ago
Not a maintainer of this repo but I can answer the first two.
bytes_value
field. This is stored alongside a type indicating what type of array it is so you can know how to decode the bytes.oneof
field, with all the potential types as subfields.Thanks for the clarification, This opens a second set of questions regarding the arrays
Thanks I went that and found some limitations as well as a lack of unit tests Hence In created an alternative implementation https://github.com/mkashwin/unifiednamespace/blob/main/02_mqtt-cluster/src/uns_sparkplugb/uns_spb_helper.py WIth the associated test cases in https://github.com/mkashwin/unifiednamespace/tree/main/02_mqtt-cluster/test
Key updates
If the expert group is in the phase of upgrading the specs I would recommend the following enhancements
datatype
consistently instead of type
and types
(for datasets perhaps datatypes wouls be good)We're always open to contributions/PRs ;)
Will try to do that by next weekend. Is it ok for the code to be python 3.12 compliant? The current code did not seem to have any limitation ( other than python 3)?
While studying the sparkplugB specification and the protofile created I had a couple of doubts
The SparkplugB spect allows for Array types to be defined
But the proto spec specifies the value as oneof.
should there not be additional entries which
repeated
phrase against the value? Probably something likeI am still trying to learn the protobuf programming so not yet sure on the exact code
do we have to give different names to the value i.e. int_value, string_value etc. can we not have just one field name "value" like it is specified in the sparkplug_b.json
Are there any plans to upgrade from proto2 to proto3?