Some have used freertos to make this work. Looked at it but happy with power with out putting to sleep.