Adarsh Ramlackhan Adarsh Ramlackhan - 1 year ago 135
Android Question

how to create http post request on android and send them to the arduino MEGA 2560?

I am a beginner to android and Arduino. I am working on a smart home project where i need to control lights from a smartphone application. I want an example on how to create http post request to communicate with my Arduino from the mobile application and vice versa. I have also learnt that the post request must be performed in an async class as it consumes time. I also need examples where to write the post request.

Answer Source

You can do this only if Web Server which can process POST requests with commands from your Android app and translate it to commands Arduino device (or if You have Web Server directly on Arduino device). On Android side there is no features for it: You can use any POST-request examples, for example this.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download