[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Paho MQTT on Android - Urgent Help

Sorry for the delay Benjamin, I was on vacation.
I think I got it working now. I thought the Python client code was actually creating a broker.
That was a mistake at my end. I didn't realized that my MacBook was running Mosquitto as Broker.

I have this running now.
 
Thanks 
Abhinav Tyagi


On Tuesday, 3 January 2017 3:26 PM, Benjamin Cabà <benjamin@xxxxxxxxxxx> wrote:


Hi Abhinav,
 
I think you will need to be a bit more specific in order to get help. Can you share more details (and maybe code?) regarding, for example, which component you used to implement the broker?
Also, although that may seem obvious, please make sure you have the android.permission.INTERNET permission set in your Manifest.
 
Benjamin.
 
De : <paho-dev-bounces@xxxxxxxxxxx> au nom de ABHINAV TYAGI <abhi007tyagi@xxxxxxxxxxx>
RÃpondre à: ABHINAV TYAGI <abhi007tyagi@xxxxxxxxxxx>, General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Date : mardi 27 dÃcembre 2016 Ã 16:46
à: "paho-dev@xxxxxxxxxxx" <paho-dev@xxxxxxxxxxx>
Objet : [paho-dev] Paho MQTT on Android - Urgent Help
 
Need urgent help!!
 
How can I create a broker on Android?
 
I am receiving connection refused while creating a broker.
I want to have Android device act as Broker and send data from other devices to the Android device.
Is this the right way?
 
I did similar thing using python
client = mqtt.Client()
client.connect(
"127.0.0.1", 1883, 60)

client. clear="none" id="yiv1085908300yui_3_16_0_ym19_1_1482853237781_15130">client. clear="none" id="yiv1085908300yui_3_16_0_ym19_1_1482853237781_15132">
client.loop_forever()
 
I want to do same for Android.
Please refer to open StackOverflow question 
 

MqttException (0) - java.net.NoRouteToHostException on AndroidThings

I am experimenting with Android Things which is still in preview mode. Facing lot of challenges with communicati...
 
 
Thanks 
Abhinav Tyagi
_______________________________________________ paho-dev mailing list paho-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/paho-dev