Part Number: CC3200MODLAUNCHXL
In main() does the call to connect to the P2P device
/* Connect to configure P2P device */
lRetVal = WlanConnect();
Connect to the P2P or the AP as it states in the calls description?
//****************************************************************************
//
//! \brief Connecting to a WLAN Access point
//!
//! This function connects to the required AP (SSID_NAME) with Security
//! parameters specified in the form of macros at the top of this file
//!
//! \param[in] None
//!
//! \return None
//!
//! \warning If the WLAN connection fails or we don't acquire an IP
//! address, It will be stuck in this function forever.
//
//****************************************************************************
static long WlanConnect()
{
SlSecParams_t secParams = {0};
long lRetVal = 0;
secParams.Key = (signed char *)P2P_SECURITY_KEY;
secParams.KeyLen = strlen(P2P_SECURITY_KEY);
secParams.Type = P2P_SECURITY_TYPE;
lRetVal = sl_WlanConnect((signed char *)P2P_REMOTE_DEVICE,
strlen((const char *)P2P_REMOTE_DEVICE), 0,
&secParams, 0);
ASSERT_ON_ERROR(lRetVal);