   }
   else
   {
+
     // attempt to connect, and wait a millisecond:
     Serial.println("Ethernet connecting to server...");
     if (client.connect(server, 80)) {

  }

  connectToServer(_bSetWiFi);

}



  //Initialize serial and wait for port to open:
  Serial.begin(9600); 
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  // Init abstract hardware classes
  g_poDataMonster = new DataMonster();
  g_poMySensorModule = new SensorModule(SENSOR_MODULE_STATUS_LED_PIN);
  g_poTweeterListener = new TwitterModule(TWITTER_MODULE_BUTTON_PIN,
  TWITTER_MODULE_STATUS_LED_PIN,
  TWITTER_MODULE_STATUS_LED_PIN);

  // Use the button to select between WiFi and Ethernet
  if( !digitalRead(TWITTER_MODULE_BUTTON_PIN) )
    g_bUseWiFi = true;

  // Init Ethernet/WiFi
  initNetwork(g_bUseWiFi);

  // prints title with ending line break 
  Serial.println("*************************************"); 
