Code for wifi based gesture control