Implement user_on_demand_response() in usertm_dmdres.c if you need to perform device-specific actions when ON DEMAND points are read.
More information
Implementation checklist.