-->
Page 2 of 2

Re: "feefeffe"

PostPosted: Sun Jul 12, 2020 5:10 am
by schufti
I had similar problems (even the intermitent failure in the beginning) with early ESP-01's and replacing the flash chip helped.
Advantage: 4MB on ESP-01 and at least the chips were cheaper than a new ESP-01

Re: "feefeffe"

PostPosted: Sat May 28, 2022 6:50 am
by tudi235
Hello there! Did you guys find a solution to this problem? I have the following code and after connecting to my school network it crashes and I was unable to resolve the problem alone. Any suggestions? This code used to work a while ago but not anymore :cry: PS. The board has no sensors attached and it's only connected via the usb cable, also the reboot happens after ~10 seconds of internet connection.

Many thanks in advance!

Code: Select all#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() {
}