I really don't know why, but I found in the Arduino forum (http://forum.arduino.cc/index.php?topic=291523.0) that you need to put IP in reverse order, if you want to use IPAdrress Object with Adafruit_CC3000_Client::connect method. Looking for this method in the code, I found that if you change these lines on the library they will works well with PubSubClient Mqtt Library and IPAdress Object:
But I'm curious, is this only happening with me and the dude who submitted the topic on Arduino Forum, or more people are facing the same problem?
I'm using the Arduino IDE version 1.6.3, and PubSubClient (https://github.com/adafruit/pubsubclient/) MQTT Library for arduino.
Thx.
I really don't know why, but I found in the Arduino forum (http://forum.arduino.cc/index.php?topic=291523.0) that you need to put IP in reverse order, if you want to use IPAdrress Object with
Adafruit_CC3000_Client::connect
method. Looking for this method in the code, I found that if you change these lines on the library they will works well with PubSubClient Mqtt Library and IPAdress Object:But I'm curious, is this only happening with me and the dude who submitted the topic on Arduino Forum, or more people are facing the same problem? I'm using the Arduino IDE version 1.6.3, and PubSubClient (https://github.com/adafruit/pubsubclient/) MQTT Library for arduino. Thx.