Merge pull request #13 from PaulStoffregen/master

Minor fixes for Teensy
Updated firmware version checks
Change return type of method connectToAP to bool

Similar to the methods connectSecure and connectOpen, a boolean value indicating success or failure is returned by connectToAP.

Furthermore some additional checks have been added to methods getIPAddress, ping, and getHostByName; they require the device to be connected and the DHCP process to be completed.

Method begin can return immediately if the device is already initialised.
Merge pull request #17 from philippthun/return-type-connectToAP

Change return type of method connectToAP to bool
Use separate timeout for each AP connection attempt.
Merge pull request #20 from damellis/timeout-fix

Use separate timeout for each AP connection attempt.
Change type of variables tcp_socket / udp_socket to signed integer

Method socket (Socket API) returns -1 in case of an error. To properly handle errors, variables tcp_socket / udp_socket must be signed integers.
Merge pull request #21 from philippthun/type-tcp_socket-udp_socket

Change type of variables tcp_socket / udp_socket to signed integer
More robust DNS/IP lookup
Added SmartConfig flags and examples
Add example of simple TCP echo server implementation.  This is a good example for learning how to write a server that runs on the CC3000 shield/breakout.
Remove tx buffer from client, add tests, and fix bugs with fastrprint handling null strings.

This commit does the following:

- Removes the transmit buffer from being a member of each client instance.  The transmit buffer is only used
  to buffer strings from flash memory to send out on sockets, therefore it's not necessary to have a separate
  buffer with each client.  The transmist buffer is now a local variable of the fastrprint function.

- Adds a test directory with a small suite of tests for the fastrprint function.  A README.md explains the
  usage of the tests, and a small python script is provided for capturing output of tests.

- Fixes a few bugs with fastrprint and fastrprintln calling send (and sending garbage data on the socket) when
  they receive a null string.  Simple string length checks now catch these conditions and respond appropriately.

This commit was tested by running the included Client_fastrprint test suite before and after the changes,
capturing the output of these tests, and comparing the before/after output with diff to ensure there was no
change in functionality.  Execution time of the tests before and after was mostly unchanged, 134 vs. 135
milliseconds.  Memory usage with multiple clients decreased as expected by moving the tx buffer out of each
class instance.
Merge pull request #25 from tdicola/master

Add example of simple TCP echo server implementation.
Added disconnect() warning
Fix compiler error with avr-gcc 4.7 and the ntpTest example.

With avr-gcc 4.7, which seems to be the version used by installing arduino as a package on  debian/ubuntu, the ntpTest example fails to compile with errors such as:
ntpTest.ino:78:22: error: variable ‘janStr’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’

This hasn't been seen before because the default version of avr-gcc used by arduino is 4.3, which doesn't catch this issue.  This fix to the example resolves the compilation problem with avr-gcc 4.7.  The commit was tested by running the ntpTest example with both avr-gcc 4.3 and 4.7 versions of Arduino--the example ran as expected in both cases.
Server implementation for the Adafruit CC3000 library which mimics the interface of the Arduino Ethernet library server.
Fix issue when running with Arduino and avr-gcc

With avr-gcc 4.7.2 (but curiously not with the older 4.3 version) it was necessary to add a copy constructor and assignment operator to the client class.  The default versions of these that were being generated were causing the CC3000 to become unresponsive.  Also calls to interrupt polling functions were added to fix instability found when compiled with avr-gcc 4.3.
Merge pull request #29 from tdicola/fix_ntptest_const

Fix compiler error with avr-gcc 4.7 and the ntpTest example.
Merge pull request #27 from tdicola/remove_client_tx

Remove tx buffer from client, add tests, and fix bugs with fastrprint handling null strings.
Merge branch 'master' of https://github.com/adafruit/Adafruit_CC3000_Library into server_v1