Configuring Anchors/Tags through MQTT

I am running python script on Raspi Gateway and delivering data from Serial directly to the cloud MQTT.
I wonder if anybody tried configuring devices by sending messages from cloud MQTT to Python subscriber script that configures a device by issuing adequate command via Serial.