How to add a custom send function to Cayenne-MQTT-Python

have a look at this Data types for Cayenne MQTT API

i have posted it above. just add client.virtualWrite(7, i, "batt","p") in it.