@tekka said:
if(isTransportOK()){ sleep(30000); // transport is OK, node can sleep } else { wait(5000); // transport is not operational, allow the transport layer to fix this }
I've only just found this post, and these lines of code have me excited! fixes my problem, thank you!