         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;
-           
+
     }
   }
   else

              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

When a command it received a response(s) are transmitted back.
Since the response is done using a Notification the peer must have opened it(subscribed to it) before any packet is transmitted.
The pipe for the UART_TX becomes available once the peer opens it.
See section 20.4.1 -> Opening a Transmit pipe
In the master control panel, clicking Enable Services will open all the pipes on the nRF8001.

The ACI Evt Data Credit provides the radio level ack of a transmitted packet.
*/
void setup(void)
{
	Serial.begin(115200);
	//Wait until the serial port is available (useful only for the leonardo)
	while(!Serial)
	{}
	Serial.println(F("Arduino setup"));
	Serial.println(F("Set line ending to newline to send data from the serial monitor"));

	/**
	Point ACI data structures to the the setup data that the nRFgo studio generated for the nRF8001
	*/
	if (NULL != services_pipe_type_mapping)
	{
	aci_state.aci_setup_info.services_pipe_type_mapping = &services_pipe_type_mapping[0];
