Hi All,
This will most likely be quite trivial however I have tried connecting to my Universities WiFi however it requires a username which my home WiFi doesn't. I have tried adding the Username field below however all this does is give me an f-permissive error.
Does anyone know how to fix this so I can use my Universities WiFi?
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266HTTPClient.h>
int Led_OnBoard = 2;
const char* ssid = "Uni_WiFi";
const char* username = "******";
const char* password = "******";
const char* host = "***.***.***.***";
void setup(){
delay(1000);
pinMode(Led_OnBoard, OUTPUT);
Serial.begin(115200);
WiFi.mode(WIFI_OFF);
delay(1000);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid,username,password);
Serial.println("");
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED) {
delay(250);
Serial.print(".");
delay(250);
}
Serial.println("");
Serial.println("Connected to Network/SSID");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
I imagine the fix for this would be quite simple however what I have tried has failed time and time again.
There is no proxy server so this isn't an issue either.
Kind Regards,
Ben