ESP8266 Schedule / Timer / RTC Wifi AP

Hi Guys,

I'm new here so please be gentle.

Background:
I'm wanting to use an ESP8266 or similar to schedule a relay with an RTC which is configurable from a web interface.

I've found a great example here:

But it has two issues, firstly it needs to be connected to an access point and secondary needs and uses an NTP time source. So far I've been able to port an RTC into the code but this has been untested as I need to set up a Soft AP.

Currently the code attached sets up an AP but I don't see any menu's and I'm not sure how this section of code work.

WiFiClient client = server.available();
if (request.indexOf("Link=1") != -1) Page = 1;
if (request.indexOf("Link=2") != -1) Page = 2;
if (request.indexOf("Link=3") != -1) Page = 3;
if (request.indexOf("Link=4") != -1) Page = 4;
if (request.indexOf("Link=5") != -1) Page = 5;
if (request.indexOf("GET / HTTP") != -1) Page = 1;

I would be greatful for a bit of guideance.
Thanks

Couldn't seem to upload the sketch here so I've uploaded it here:

Guidance? Please read the forum instructions, especially #7.

How to use this forum

What you need is request.arg(i) and request.argName(i) to look at the key/value pairs.