Advantage: 4MB on ESP-01 and at least the chips were cheaper than a new ESP-01
Advantage: 4MB on ESP-01 and at least the chips were cheaper than a new ESP-01
Explore... Chat... Share...
#include <ESP8266WiFi.h>
#include <c_types.h>
#include <user_interface.h>
#include <wpa2_enterprise.h>
char ssid[] = "eduroam";
char username[] = "***";
char identity[] = "***";
char password[] = "********";
void setup() {
Serial.begin(115200);
delay(1000);
wifi_set_opmode(0x01);
struct station_config wifi_config;
memset(&wifi_config, 0, sizeof(wifi_config));
strcpy((char*)wifi_config.ssid, ssid);
strcpy((char*)wifi_config.password, password);
wifi_station_set_config(&wifi_config);
wifi_station_set_wpa2_enterprise_auth(1);
wifi_station_clear_cert_key();
wifi_station_clear_enterprise_ca_cert();
wifi_station_clear_enterprise_identity();
wifi_station_clear_enterprise_username();
wifi_station_clear_enterprise_password();
//wifi_station_set_enterprise_ca_cert(ca_cert, sizeof(ca_cert)); //uncomment if not connecting without certificate
wifi_station_set_enterprise_identity((uint8*)identity, strlen(identity));
wifi_station_set_enterprise_username((uint8*)username, strlen(username));
wifi_station_set_enterprise_password((uint8*)password, strlen(password));
//wifi_station_set_enterprise_ca_cert(ca_pem, ca_pem_len); //uncomment if not connecting without certificate
delay(1000);
wifi_station_connect();
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print("*");
}
Serial.println("");
Serial.println("WIFI CONNECTED!");
Serial.print("IP ADDRESS: ");
Serial.println(WiFi.localIP());
}
void loop() {
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]