cheekmate will not connect to IO

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
jimk123
 
Posts: 708
Joined: Sun Dec 26, 2010 7:04 pm

cheekmate will not connect to IO

Post by jimk123 »

trying to following this tutorial: https://learn.adafruit.com/cheekmate-wi ... munication with arduino. It compiles ok but seems to be in a loop trying to connect, not sure if it is stuck on wifi or IO ? I am using a mobile hotspot and on the display on that device I did see the # connected devices increment so I think it made it past wifi but not sure if there is a verbose debug switch I can enable to see more details.

I added some serial.println lines to the code to see where it may be stuck and see this in the console. I also displayed the SSID, FEED_NAME etc in setup() just to confirm I coded the config file correctly and the values look ok to me. Not sure where else to look for more details on the connection.

thanks

Code: Select all

Serial.print("FEED_NAME");  Serial.println(FEED_NAME);
  Serial.print("FEED_OWNER"); Serial.println(FEED_OWNER);
  Serial.print("IO_USERNAME");Serial.println(IO_USERNAME);
  Serial.print("WIFI_SSID");  Serial.println(WIFI_SSID);
  
  Serial.print("Connecting to Adafruit IO");
  io.connect();
  Serial.println("connected  - now check IO status");
  
  while(io.status() < AIO_CONNECTED) { // Wait for connection
    Serial.write('.');
    Serial.println(io.statusText());
    Serial.println(io.status());
    delay(500);
  }

  Serial.println("CONNECTED io.statusText=");
  Serial.print(io.statusText());
14:20:26.644 -> Connecting to Adafruit IOconnected - now check IO status
14:20:27.188 -> .Idle. Waiting for connect to be called...
14:20:27.188 -> 0
14:20:27.722 -> .Disconnected from Adafruit IO.
14:20:27.722 -> 2
14:20:28.195 -> .Disconnected from Adafruit IO.
14:20:28.195 -> 2
14:20:28.713 -> .Disconnected from Adafruit IO.
14:20:28.713 -> 2
14:20:29.214 -> .Disconnected from Adafruit IO.
14:20:29.214 -> 2

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: cheekmate will not connect to IO

Post by mikeysklar »

Have you tried running the Cheekmate example code?

Which version of the Adafruit IO libraries do you have installed? This disconnect message you are seeing can be caused by changes to the SSL key embedded in the library.

viewtopic.php?p=945228&hilit=Disconnect ... IO#p945228

User avatar
jimk123
 
Posts: 708
Joined: Sun Dec 26, 2010 7:04 pm

Re: cheekmate will not connect to IO

Post by jimk123 »

I think i found the problem, i was using a mobile hotspot and although it was accepting connections it was no longer connected to the internet. I confirmed this by connecting my laptop to the hotspot but was not able to browse to a web site. I restarted the mifi device and all is well again.

I am using the sample code from the tutorial i referenced above.
Thanks

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: cheekmate will not connect to IO

Post by mikeysklar »

Thank you for the update. The mobile hotspot stuck out as non-traditional, but I didn't want to start finger pointing before going through other options.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”