Mesab / Project portfolioInteractive simulation
API · device control

Cloud API for IoT

Switch a virtual light and inspect the request and response for a local API demonstration.

Interactive simulation · Synthetic data / simulated hardware
ENGINEERING FIGURE

One contract. A connected fleet.

Control clientSelect device · send command
JSON APIGET state · PUT state
Device registry24 independent virtual lights
CLIENT → API → STATE → RESPONSE
Conceptual flow of the recreated device-state API. Browser controls emulate the request contract; the downloadable FastAPI example runs locally.
ENGINEERING FIGURE

Device state at a glance

010203040506070809101112131415161718192021222324
0Lights switched on
24Virtual devices
Interactive device registry. Turn lights on in the controller below to update this figure. State lasts for this page session.

Device controller

LIGHT OFF

This page models requests in the browser. It does not connect to a physical light or a live cloud service.

Control appAPI contractVirtual device

Request inspector

24Virtual devices
JSONPayload format
0Local requests
Download project source

Includes the browser simulation, implementation notes and supporting example source.