buildtest works fine. Completes the sketch Displays IP address as 10.0.017 Ping successful and disconnects. I can see the Uno on my network devices.
SD card works fine can read and write to sd card
datalogger sketch works fine. So far I have tried a number of sketches and no problems yet. Baud rate on serial monitor had to be changed to 115200
Without disconnecting how do I connect 10.0.0.220 on my network which is a public folder no login required. This is where for example the datalogger.txt from the sdcard would be sent to.
My guess is to start with the code in buildtest that does the ping on adafruit,com and redirect that to my IP address.
I have looked for example sketches and have found nothing that resembles what I am trying to do. If there are any sample sketches out there point me in that direction.
Right now I am going piece by piece with the sketches to make sure everything is working. So far so good.
Thanks Bill Roberts.
Code: Select all
#ifndef CC3000_TINY_DRIVER
/* Try looking up www.adafruit.com */
uint32_t ip = 0;
Serial.print(F("www.adafruit.com -> "));
while (ip == 0) {
if (! cc3000.getHostByName("www.adafruit.com", &ip)) {
Serial.println(F("Couldn't resolve!"));
}
delay(500);
}
cc3000.printIPdotsRev(ip);
/* Do a quick ping test on adafruit.com */
Serial.print(F("\n\rPinging ")); cc3000.printIPdotsRev(ip); Serial.print("...");
uint8_t replies = cc3000.ping(ip, 5);
Serial.print(replies); Serial.println(F(" replies"));
if (replies)
Serial.println(F("Ping successful!"));