def setMessageCodec(self, messageFormat, codec):
self._messageCodecs[messageFormat] = codec<EOL>
Set a Python class as the encoder/decoder for a specified message format.

# Arguments
messageFormat (string): The message format to retreive the encoder for
codec (class): The Python class (subclass of `wiotp.common.MessageCodec` to set as the encoder/decoder for `messageFormat`