ESP8266 Built-in LED PWM brightness slider via Web Access point

So I need to create a PWM LED brightness slider through a web access point for a school project. I have tried detecting the slider value through URL but it only flashes the led once? Any help would be appreciated! . Code is in attachment. Thanks in advance!

led_brighntes_c.ino (3.67 KB)

I wrote this program some time ago. I just updated it for the latest version of the ESP8266 Core, and it seems to be working just fine. (I only updated and tested the Control-Panel-WebSocket-Sliders program.)

You need the WebSocket library: GitHub - Links2004/arduinoWebSockets: arduinoWebSockets

Pieter