Writing through MQTT endpoint