The lamp is connected to a basic server that listens for the toggle command from the web interface. When the toggle switch in the UI is flipped, a JavaScript function sends a command to the server, which then turns the lamp on or off accordingly. This repository contains the code for a smart lamp that I designed. The lamp can be controlled through a web interface to toggle its power state (on/off) using JavaScript. This project demonstrates the application of basic JavaScript toggling functionality to control hardware devices.
- Toggle Switch: A simple UI toggle switch to turn the lamp on and off.
- Responsive Design: The web interface is responsive and can be accessed from various devices.
- HTML: For structuring the web interface.
- CSS: For styling the web interface.
- JavaScript: For the toggle functionality.
If you have any questions, feel free to reach out to me at doaaosamakhalaf@gmail.com.