Using Cayenne without waiting for internet

my problem is if network has problem and cayenne cannot connect to the network ،sketch stuck in do while loop and all sketch wait for connect to the internet.
how can i use cayenne so that don’t get stuck in loop and other part of sketch work fine.i use ardunio and ethernet shiled to connect to the internet.

you can try this Non-blocking connection with Cayenne