sample code for controlling led on web interface