If that works at the conosle then the code change to fix it is simple:

Add this:

Code:
        // Special case - Respond to security confirmation for stereos that require 
        // passkey phrase to be echoed back to them
        if (theString.indexOf(F("SSP CONFIRM")) > (-1))
        {
          commandToSend = theString;
        }


Right before this existing section of code:

Code:
        // Send the final assembled pairing response string to the bluetooth chip.
        SendBlueGigaCommand(commandToSend);
_________________________
Tony Fabris