Let's control a model railway layout with a smartphone(Or any device with a web browser) with the help of an ESP8266 microcontroller.
The microcontroller connects to a Wi-Fi router which allows any device connected to the same router to access the controls of the layout.