MQTT Broker, Decoder and Encoder Implementation