Control servos through app trouble

could it be the loop in the code?

What code?
I don't see any code.