Open rovingclimber opened 6 years ago
No-one? Has anyone managed to get EAP-TLS working and have any suggestion?
Hi did you get this solved I am trying to connect to the BTwfi-x
I'm currently getting the same error - in my case I've also tried to set the CA certificate (wifi_station_set_enterprise_ca_cert
) and identity (wifi_station_set_enterprise_identity
). What I'm seeing in my freeradius logs is that the Node-MCU is never requesting EAP-TLS but only MS-CHAP-V2, PEAP and EAP-TTLS and the request being rejected (which seems not to be recognized by the NodeMCU).
Any news on that? I even tried to compile the wpa2 example of the latest Non-OS SDK (3.1.0-dev(b2602cc)) without any success. The ESP8266 throws an exception, I never see EAP-TLS requests hitting the Radius server.
Help appreciated!
Hardware
Hardware: NodeMCU v0.9 (ESP-12) Core Version: 2.4.0 (showing in board manager) - SDK 2.1.0(deb1901) reported by system_get_sdk_version();
Description
I have failed every attempt to get WPA2 enterprise to work. I've been through every forum entry on this, everyone seems to say it should work but I've been unable to get any example working. I keep getting a mysterious error: "Method private structure allocated failure", which seems to come at the point you'd expect a successful connection. Googling finds a couple of people seem to have hit the same point but no resolution.
I have two IDE PCs, just set one up from scratch with fresh install of Arduino and this lib, still same problem. Interestingly I have also been trying to get this working on an ESP32 using the Arduino lib and get exactly the same error (with quite different code) so something from an underlying lib?
Any help would be gratefully received!
Settings in IDE
Module: NodeMCU 0.9 (ESP-12 Module) Flash Size: 4MB (1Mb SPIFFS) IWIP Variant: v2.0 Prebuild (MSS=536) CPU Frequency: 80Mhz
Sketch
cert.h:
Debug Messages
SDK version: 2.1.0(deb1901) Free Heap: 37224 Free Stack: 1236 Connecting to myssid Calling wifi_station_set_config 1 Calling wifi_station_set_wpa2_enterprise_auth WPA2 ENTERPRISE VERSION: [v2.0] enable 0 Calling wifi_station_set_enterprise_cert_key 0 Calling wifi_station_set_event_handler_cb scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 15 cnt Method private structure allocated failure pm open,type:2 0 Calling wifi_station_connect Wifi station connect status:1
Not connected Mode: STA PHY mode: N Channel: 1 AP id: 0 Status: 1 Auto connect: 1 SSID (8): myssid Passphrase (0): BSSID set: 0 sl scandone usl