Skip to main content

[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.
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.
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()
"", 1883, 60)

client._on_connect_ = on_connect
client._on_message_ = on_message

I want to do same for Android.
Please refer to open StackOverflow question 

MqttException (0) - on AndroidThings

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

Back to the top