Eh you didn't quite manage the </> code-tags properly. You have to click the button at the top of the composer window and paste code in between that.
But that is a different matter.
void handleRoot() {
LDRReading = analogRead(A0);
server.send(200, "text/html", "
You are connected
");
}
This does not compile, you can not print a text over multiple lines, is that how it actually is ?
If you are using an UNO you may as well just use it's 3.3v, but it is suspicious that your connection attempt causes it to crash, but i think i found the cause.
#define APSSID "paultest"
#define APPSK "test" // this is not a valid password
#endif
const char *ssid = APSSID;
const char *password = APPSK;
A wifi password has to have a minimum length of 8 characters (and not all characters are allowed.
If that is the case the wifi credentials that were used last will be used, but those don't exist as yet.
Chage it to
#define APPSK "testtest"