Gcm Alternative For Local Networks Or Sending Messages To Device Ip
I want to send notifications to some devices connected to my local network. First alternative was GCM but this implies sending a message to Google server and then Google server sen
Solution 1:
You should take a look at MQTT. There is also a Java library that is compatible with Android; the Eclipse Paho Client. In very simplistic terms, MQTT an asynchronous publish/subscribe mechanism that is well suited for what you want. It runs on top of TCP/IP.. You will need to use a MQTT broker on the server side (i.e. mosquitto (mosquitto.org) or RSMB (Really Small Message Broaker), etc)
If you are interested, I created a simple project that allows you to connect to a Raspberry Pi and turn the lights of your house on and off using and Android device. Here is the git
Post a Comment for "Gcm Alternative For Local Networks Or Sending Messages To Device Ip"