         {
            char hello[]="Hello World, works";
            uart_tx((uint8_t *)&hello[0], strlen(hello));
-           Serial.print(F("Sending :")); 
+           Serial.print(F("Sending :"));
            Serial.println(hello);
         }
         break;
-        
+
       case ACI_EVT_CONNECTED:
         Serial.println(F("Evt Connected"));
         uart_over_ble_init();
         timing_change_done              = false;
         aci_state.data_credit_available = aci_state.data_credit_total;
-        
+
         /*
         Get the device version of the nRF8001 and store it in the Hardware Revision String
         */
         lib_aci_device_version();
         break;
-        
+
       case ACI_EVT_PIPE_STATUS:
         Serial.println(F("Evt Pipe Status"));
         if (lib_aci_is_pipe_available(&aci_state, PIPE_UART_OVER_BTLE_UART_TX_TX) && (false == timing_change_done))
         {
-          lib_aci_change_timing_GAP_PPCP(); // change the timing on the link as specified in the nRFgo studio -> nRF8001 conf. -> GAP. 
+          lib_aci_change_timing_GAP_PPCP(); // change the timing on the link as specified in the nRFgo studio -> nRF8001 conf. -> GAP.
                                             // Used to increase or decrease bandwidth
           timing_change_done = true;
         }
         break;
-        
+
       case ACI_EVT_TIMING:
         Serial.println(F("Evt link connection interval changed"));
-        lib_aci_set_local_data(&aci_state, 
+        lib_aci_set_local_data(&aci_state,
                                 PIPE_UART_OVER_BTLE_UART_LINK_TIMING_CURRENT_SET,
                                 (uint8_t *)&(aci_evt->params.timing.conn_rf_interval), /* Byte aligned */
                                 PIPE_UART_OVER_BTLE_UART_LINK_TIMING_CURRENT_SET_MAX_SIZE);
         break;
-        
+
       case ACI_EVT_DISCONNECTED:
         Serial.println(F("Evt Disconnected/Advertising timed out"));
         lib_aci_connect(0/* in seconds  : 0 means forever */, 0x0050 /* advertising interval 50ms*/);
-        Serial.println(F("Advertising started. Tap Connect on the nRF UART app"));        
-        break;
-        
+        Serial.println(F("Advertising started. Tap Connect on the nRF UART app"));
+        break;
+
       case ACI_EVT_DATA_RECEIVED:
-		Serial.print(F("Pipe Number: "));	  
+		Serial.print(F("Pipe Number: "));
 		Serial.println(aci_evt->params.data_received.rx_data.pipe_number, DEC);
 
-		if (PIPE_UART_OVER_BTLE_UART_RX_RX == aci_evt->params.data_received.rx_data.pipe_number)					
+		if (PIPE_UART_OVER_BTLE_UART_RX_RX == aci_evt->params.data_received.rx_data.pipe_number)
 			{
-				
+
 			  Serial.print(F(" Data(Hex) : "));
 			  for(int i=0; i<aci_evt->len - 2; i++)
 			  {

              Serial.println(F("Evt Device Started: Setup"));
              setup_required = true;
              break;
            
            case ACI_DEVICE_STANDBY:
              Serial.println(F("Evt Device Started: Standby"));
              //Looking for an iPhone by sending radio advertisements

              lib_aci_connect(0/* in seconds : 0 means forever */, 0x0050 /* advertising interval 50ms*/);
              Serial.println(F("Advertising started : Tap Connect on the nRF UART app"));
              }

              break;
          }
        }
        break; //ACI Device Started Event

      case ACI_EVT_CMD_RSP:
        //If an ACI command response event comes with an error -> stop
        if (ACI_STATUS_SUCCESS != aci_evt->params.cmd_rsp.cmd_status)
