CC3000

Our weekly LIVE video chat. Every Wednesday at 8pm ET!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Med96
 
Posts: 3
Joined: Wed Jan 10, 2018 3:43 am

CC3000

Post by Med96 »

I have the Adafruit CC3000 breakout setup to an Arduino mega. It works for about 30 mins to an hour and than stops working. If I reset it, it works again (then hangs again after the ~30mins). Any thoughts?
/////////////////////////////////////////////////////////////////////////
#include <UbidotsCC3000.h>
#include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#include <string.h>
//#include "utility/debug.h" // Uncomment this line to set DEBUG on

#define WLAN_SSID "------------------" // Your WiFi SSID, cannot be longer than 32 characters!
#define WLAN_PASS "-----------------------------" // Replace it with your WiFi pass
// Security can be WLAN_SEC_UNSEC, WLAN_SEC_WEP, WLAN_SEC_WPA or WLAN_SEC_WPA2
#define WLAN_SECURITY WLAN_SEC_WPA2

#define TOKEN "------------------------------------" // Replace it with your Ubidots token
#define ID "----------------------------------" // Replace it with your Ubidots' variable ID



Ubidots client(TOKEN);

void setup() {
pinMode(value1, OUTPUT);
Serial.begin(115200);
client.initialize();
client.wifiConnection(WLAN_SSID, WLAN_PASS, WLAN_SECURITY);

}

void loop() {

float value = analogRead(A0);
client.add(ID,value);

client.sendAll();
}

Med96

Posts: 1
Joined: Wed Jan 10, 2018 8:43 am

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: CC3000

Post by adafruit_support_carter »

Locked. Cross posted:
viewtopic.php?f=31&t=129224

Locked
Please be positive and constructive with your questions and comments.

Return to “Ask an Engineer! VIDEO CHAT (closed)”