I need to know if Android can listen to a data sensor via wifi? Can android listen to a port and be like a server?

Arduino Device Sensor -> WIFI connection (protocol?) -> Android Device

Can Android device listen to certain port with HTTP messages?

  • Reading between the lines: Are you looking for some Arduino helper app? – Izzy May 30 '16 at 5:53
  • @Izzy I am not sure about which Arduino Helper you are referring to. – Nap May 30 '16 at 6:09
  • 1
    I can't tell you which one might match as 1) I'm not familiar with Arduino (I have none) and 2) your question doesn't tell what you want to achieve. Listening to a given port is done by a server process, so you need to install the corresponding server app. Hard to say which one that would be without knowing what you want to do :) So I just gave you a link to Arduino apps in the hope you could pick the one matching your goal. As your question is currently phrased, the answer would be: "yes, with the appropriate app" :) – Izzy May 30 '16 at 6:14
  • 1
    As of currently written, your question seems too broad/unclear. As for your specific question: yes, Android supports socket programming, but you need specific app to listen to them. Android OS by default doesn't provide such app, so sending HTTP messages to the device won't achieve any. – Andrew T. May 30 '16 at 16:26
  • 1
    AFAIK, you can use persistent service (no-GUI) as server that always listens to client's request. I personally have done something like that using sockets for sensor monitoring from Android. However, that's outside of the scope of this site, which is more for end-users, not developer. – Andrew T. Jun 4 '16 at 8:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.