I'm trying to connect my Arduino with ethernet to Xively using their MQTT server but am having trouble authenticating. When I do client.connect("arduinoMQTT")
I get a failure. I tried passing my API Key as a username by doing client.connect("arduinoMQTT", "APIKEY")
but then the code won't compile.
How can I authenticate to the Xively MQTT server on arduino.