hi,
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???
thanks
bob.
Hi Bob,
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.
Regards
Igor
hi igor,
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()
Bob,
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.
Regards,Gustavo
hi gustavo,
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.