   
   // print buffer in HEX to the console:
   /*
-  Serial.print(F(" ["));
+  print(F(" ["));
   for(int i=0; i<len; i++)
   {
-      Serial.print(" 0x"); Serial.print((char)buffer[i], HEX); 
+      print(" 0x"); print((char)buffer[i], HEX); 
   }
-  Serial.println(F(" ]"));
+  println(F(" ]"));
   */
 }
 

  switch(event)
  {
    case ACI_EVT_DEVICE_STARTED:
      Serial.println(F("Advertising started"));
      break;
    case ACI_EVT_CONNECTED:
      Serial.println(F("Connected!"));
      break;
    case ACI_EVT_DISCONNECTED:
      Serial.println(F("Disconnected or advertising timed out"));
      break;
    default:
      break;

/**************************************************************************/
void rxCallback(uint8_t *buffer, uint8_t len)
{
  sprint(F("Received "));
  sprint(len);
  sprint(F(" bytes: "));
  
  if(commandInterpreter.interpretCommand(buffer, len)) // check if command can be interpreted
      return;  // do not echo if command was a success
