i'm using the TP-LINK router, and have selected WPA-PSK security; i have assigned a password there, and verified that i can associate with the router (using this password) from my PC and phone....
i'm having trouble, however, associating with this WAP from the CC3000 by calling connect(); in the past, i have had no trouble associating with the WAP before i enabled security....
for the first parameter to connect, i'm passing WLAN_SEC_WPA; and for the last two parameters, i'm passing the password (key) string together with it's length....
connect(WLAN_SEC_WPA, ssid, ssidlen, 0, key, keylen)
what am missing here???
Please make sure that the key that you pass to the connect, and as set in the TP LINK router are matching also in there types.
In general you can select if the key, provided to the AP is in ASCII or HEX values.
i believe i did this.... in the TP LINK router, i am using WPA-PSK (and selected WPA1 specifically).... i entered an *ascii* password, which is what i used on my phone/PC to associated with the router.
i passed the *same* ascii string to connect, but had no luck....
maybe i missed something else.... perhaps you could give me an explicit example, showing me what to do with the TP LINK router set as well as what to pass to connect()
Could you paste the exact code you're using? How do you obtain the string len?
Please make sure that the define you're using for security is correct, i.e. is WLAN_SEC_WPA defined as 2?
Try to configure the sensor demo application to use the WPA to see if it connects. Please note that when using connect, it may take up to 6 seconds for the connection to be established. This happens only once when you use profiles.
when i pass the value WLAN_SEC_WPA2 (which i believe has the value3), everything worked.... the (text) password i used when setting up the router was passed a C string to connect....
Great to hear.
I would then guess that your AP was configured to use WPA2 and not WPA.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.