Website is hosted on a disposable vape
8 hours ago
- #microcontroller
- #web-server
- #embedded
- Article discusses hosting a website on a disposable vape using a microcontroller.
- The microcontroller used is a PUYA PY32F002B with 24MHz Coretex M0+, 24KiB Flash, and 3KiB RAM.
- Author utilized semihosting and SLIP (Serial Line Internet Protocol) to connect the vape to the internet.
- Initial performance was poor (~1.5s pings, 50% packet loss), but optimizations improved it to 20ms pings and 160ms page loads.
- The project uses uIP for the IP stack and includes a minimal HTTP server.
- Author modified the filesystem structure for better portability and added a JSON API endpoint for fun.