You don't read data from a MQTT broker, instead you subscribe to a topic and get sent the data when ever a new message is published to that topic.
So you need to implement an instance of the MqttCallback interface and set it on the connection:
client.setCallback(new MqttCallback() {
public void connectionLost(Throwable cause) {
}
public void messageArrived(String topic,
MqttMessage message)
throws Exception {
System.out.println(message.toString());
}
public void deliveryComplete(IMqttDeliveryToken token) {
}
});
Then you need to tell the broker which topics you are interested in:
client.subscribe("topic/foo")