Arduino to unity3d & Ipad

danneskjold:
if i dont send a blank print if no switch is pressed.. the shield disconnects after sometime. .like 10 secs.

If you need to send something at regular intervals to keep the connection alive (seems strange to me, but may be the case) then I suggest you do it on a timed basis e.g. once per second rather than on every time through loop(). Look at the 'blink without delay' example to see how to do things on a timed basis.