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._on_connect_ = on_connect
client._on_message_ = on_message
I want to do same for Android.