Found big mistake in the waiting state. The application is now good to send and receive data.. but not in the right way yet.