groove-x / mqtt_bridge

mqtt_bridge provides a functionality to bridge between ROS and MQTT in bidirectional
MIT License
160 stars 146 forks source link

How to turn off serialization #57

Closed zouri closed 3 years ago

zouri commented 3 years ago

hi, I didn't find the option to turn off serialization when I checked the readme, is there a feature for this, thanks

ledmonster commented 3 years ago

@zouri Sorry for replying late. You can define passthrough serializer, and configure it in config file.

in your someapp/someutil.py:

def serialize(value):
    return value

def deserialize(value):
    return value

and you can configure it in config file like this:

serializer: someapp.someutil:serialize
deserializer: someapp.someutil:deserialize