   }  
 
   /* Display the IP address DNS, Gateway, etc. */  
-  while (!displayConnectionDetails(&cc3000)) {
-    delay(1000);
-  }
+  while (!displayConnectionDetails(&cc3000)) delay(1000);
 
   return &cc3000;
 }

  BSD license, all text above must be included in any redistribution
 ****************************************************/

// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ   3  // MUST be an interrupt pin!
// These can be any two pins
#define ADAFRUIT_CC3000_VBAT  5
#define ADAFRUIT_CC3000_CS    10
// Use hardware SPI for the remaining pins
// On an UNO, SCK = 13, MISO = 12, and MOSI = 11

Adafruit_CC3000 *CC3000_setup(char *ssid, char *passphrase, unsigned long security)
{
  Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIV2);

  displayFreeRAM();

  Serial.println(F("Initializing the CC3000 ..."));
  displayDriverMode();
  if (!cc3000.begin()) { Serial.println(F("Unable to initialize the CC3000! Check your wiring?")); for (;;); }



unsigned int port = 22601;
// All TSRP transmissions are via UDP to port 22601 on multicast address '224.192.32.19'.
#define WLAN_SSID       NULL          // cannot be longer than 32 characters!
#define WLAN_PASS       "..."
#define WLAN_SECURITY   WLAN_SEC_WPA2

Adafruit_CC3000_Client udp;
