1

I have an Arduino WiFi server connected to a router, and I want to send a string to an Android application connected to the same network. How can I get that string?

More specific. I want to enable airplane mode while the app receive that string.

Thanks in advance.

6
  • from Arduino WiFi server you have to send string to android that connected with same network. Commented Nov 9, 2015 at 4:49
  • first your android app send CMD to broadcast IP and port of same network. and then Arduino server will listen on same port and give response of that CMD. Commented Nov 9, 2015 at 4:53
  • Do you have a code example? I've read this: stackoverflow.com/questions/20345155/… But I don't know if that's what I need. Commented Nov 9, 2015 at 4:57
  • visit developer.android.com/training/connect-devices-wirelessly/… Commented Nov 9, 2015 at 5:07
  • Your wifi will have to be on. You can just use TCP sockets to communicate between the two. Commented Nov 9, 2015 at 6:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.