Update connect command in bluetooth and socket to eliminate warning