Configure MQTT to Publish in Shorter Intervals

Hi there,

I would like to know if there is a way to configure MQTT to publish power measurements in shorter intervals (as the title suggests).

Context:
I am working with emonPi and emonTX (the latter is used to take power measurements using the CT clamps). My goal is to read the current power every 5s, using an MQTT subscriber.

By connecting to the MQTT broker I could get the desired data on intervals of 10s, but not less than that. As a workaround, I created a power Feed along with a python script that uses the Feed API. I manually request.get the power values, sleep for 5s and loop, but I feel like this is not the optimal way to go.

Is there any guide or resource that I could consult? Thanks a lot in advance!