0

CC3000
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CC3000

by Med96 on Wed Jan 10, 2018 4:57 am

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

Med96
 
Posts: 3
Joined: Wed Jan 10, 2018 3:43 am

Re: CC3000

by adafruit_support_carter on Fri Jan 12, 2018 5:06 pm

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

adafruit_support_carter
 
Posts: 12987
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.


cron