python protobuf send over mqtt code example
Example 1: google.protobuf.Struct example python
from google.protobuf.struct_pb2 import Struct
from google.protobuf import json_format
s = Struct()
s.update({"key": "value"})
json_format.MessageToDict(s)
Example 2: google.protobuf.Struct example python
from google.protobuf.internal.well_known_types import Struct
s = Struct()
s.update({"key": "value"})