Open penright opened 7 years ago
Maybe use int wifi_station_set_enterprise_identity(u8 *identity, int len); which was added some weeks ago?
thanks for your answer, @kriegste
@penright I'm not sure whether arduino has used master branch of nonos sdk, you can copy the libwpa2.a in the master branch to arduino platform, and have a try.
Thanks @kriegste and @wujiangang
I trying to find the answer to what branch nonos sdk Arduino uses. Right now I am deconstruction the Arduino. I think it does use the master branch. Since it does not look like a bug and while I am digging should we close this? Is there a forum I could post to? The ones I have tried so far do not seem very actived.
While I am here, can I ask a point of clarification.... So the hello world example I was using had a "username" (wifi_station_set_enterprise_username) and "password" (wifi_station_set_enterprise_password) function. Which is what my phone asked logging into the WPA2 Enterprise (MySSID). So is wifi_station_set_enterprise_identity used instead of wifi_station_set_enterprise_username?
I found the answer to one question. Here is the change log for the Arduino board manager that installs the esp8266. If I am reading it right, Version 2.3.0 (Arduino ?), June 2016, SDK 1.5.3 (esp8266 ?) .
One last shot I tried to copy the libwpa2.a and the wpa2enterprise.h files into my libs.
Then I add the set identity and all compiled. But when linking I get a **.text' will not fit in region
iram1_0seg'** By commenting out different lines I have narrowed it to setting the enterprise auth to 1 "wifi_station_set_wpa2_enterprise_auth(1)" I did not get this link error before the hack.
Sounds like I need to wait till @igrr updates the board manager. If wrong maybe he will correct me.
Hi penright, I had the same problem as you, see this comment. The way I got it to work is here.
Now if they could only fix the EAP-selection bug, we would all be on our way.
@victorclaessen Thanks. I found a blog that got me connected. here Looks like the same steps. The issue now is now way to edit the user name. The only way I could connect was to binary edit the the object file. Here was his steps ...
- Modify the file libwpa2.a (in …/packages/esp8266/hardware/esp8266/tools/sdk/lib): Using a hex editor(i.e. vi), replace the text anonymous@espressif.com with your mail address, fill the spare positions with . (periods) to ensure that the text length is not unchanged
I was trying to add it to the Open Garage WiFi gui. Without the username being soft I am still stuck.
So in the time since the blog post that you mention, ExpressIf have added the _wifi_station_set_enterpriseidentity function to the API. So now you do not need to edit libwpa2.a anymore. You can just set the identity with that function. But you will need the new version of the ExpressIf SDK (update_sdk_2.1.0). For details, see my posts.
I could not get WPA2 to connect, then I found this article. In it the author describes how to hack the libwpa2.a. Once I did hack the libwpa2.a file, I was able to connect to WPA2 Enterprise. If I can try anything to help debug please let me know.
Here is my code