1

How can I send files from my mobile phone to raspberry pi using wifi or any other network?

Vrishab ML
  • 21
  • 3
  • you may use mqtt to do all kinds of communication between different devices – waqaslam Oct 27 '16 at 13:14
  • I want to send files from my Android phone to raspberry pi and that file has to be displayed on the led screen connected to the pi. Can I do this using wifi? Or mqtt? – Vrishab ML Oct 27 '16 at 13:15
  • don't confuse wifi with transfer protocol... wifi is a communication link... upon wifi you are supposed to use some sort of protocol to perform actual data transmission and for that purpose i suggested mqtt as it's simple and flexible. If you want, you may also use tcp socket to perform data transmission, but then it's upto you – waqaslam Oct 27 '16 at 13:18
  • Okay. So I can send files through mqtt from my Android phone to raspberry pi 3? – Vrishab ML Oct 27 '16 at 13:20
  • yes, but you need to write server/client implementations, where your device acting as client and raspberry-pi as server... also make sure to install mosquitto (mqtt broker) on rpi – waqaslam Oct 27 '16 at 13:20
  • Thanks for the answer – Vrishab ML Oct 27 '16 at 13:27

2 Answers2

2

You could setup a connection through sockets. This would require you to have a wifi dongle for your raspberry pi.

You could start with reading Android sockets and basically any tutorial you can google (Example)

0

i used a server in between for communication (xmpp protocol between server and mobile)

Followed this code https://github.com/upnpforum/uca-android-controller/tree/master/controllerapp/src/com/comarch/android/upnp/ibcdemo

Rissmon Suresh
  • 13,173
  • 5
  • 29
  • 38