# WebSocket LED Control

Day 31 of the 100 Days 100 IoT Projects collection. Board: Pi Pico.

Toggle an LED from a web page with real-time WebSocket updates on the Pico W. Bidirectional browser-to-board communication.

## How it works

After a normal HTTP handshake, the connection upgrades to a WebSocket that stays open in both directions. Tapping the page's button pushes a message instantly to the Pico W — no refresh, no polling delay — and the LED responds in near real time.

## What you'll learn

- WebSocket protocol
- Persistent connections
- HTTP vs WebSocket tradeoffs
- Real-time browser control

Full project (code, wiring diagram, Wokwi simulation): https://github.com/kritishmohapatra/100_Days_100_IoT_Projects/tree/main/WebSocket_LED_Control_using_Raspberry_Pi_Pico_W

Summary by SkillShop. Code and diagrams belong to the original repo.
