I'm trying to publish a message via MQTT. So I created a blank Android app and added the Paho MQTT library to it.
This is the line of code I execute first:
MqttClient client = new MqttClient("tcp://192.168.178.34", "Foo");
This throws an "MqttException" which contains no message, no error code, no nothing. So currently I have no idea what's going wrong.
I also added the following permissions to my app:
Can anyone give me a hint what I could be doing wrong here?