you will find everything about this function in this Sending MQTT messages within rate limits
this function is called automatically when you use the cayenne dashboard to send value to your device.
in case of CAYENNE_OUT_DEFAULT() you can use inbuilt millis() to send data at your own time intervals. but it should not be sent at higher rate as it could cause your device to disconnect.