0

In my application that is under development I have to send data directly from raspberry pi 2 to an android device .

I have successfully implemented the following Solutions

Solution 1 : Using Google Messaging Service

Using Cloud Based Server : By Sending data through API to a cloud based server which will send the data using pushy but that is also similar process as above.

All of the above solutions work but they are too slow is there any way i can directly interact with the android device from rapsberry pi ?

Abdul Basit
  • 493
  • 11
  • 34
  • Have a server directly in your network. Or let the raspberry be the server. Let the information be on a database on the raspberry. The Android phone could do some polling to check if there is new data for it. If it is, it can directly read the data from the database. Consider, that both devices have to be in the same network (wifi for example). Otherwise it should take as long as using the cloud based server, I guess. I think the key here is, that the client (Android) should get its data by itself. – KJaeg May 24 '16 at 09:37

1 Answers1

2

You could use a websocket connection. See this thread for a list of library you can use.

Community
  • 1
  • 1
ThomasV
  • 779
  • 1
  • 5
  • 20