I am trying to create an mqtt client in my android service using the paho client library . The mosquitto broker is running on my local machine. I am getting an MqttPersistenceException exception when i try to create a new instance of the MQTTClient.
//create client port=1883 mqttConnSpec="tcp://"+ipaddressOflocalMachine+":"+ port mqttClient = new MqttClient(mqttConnSpec, mqttClientId)
the exception does not give any reason. I am successfully able to communicate using a java console app. Is there something extra needed when running this in the android emulator. Any help is much appreciated
thanks Ben