Corrected MQTT payload parsing