Phone (mobile app) IoT device — drag me Cloud relay

Mobile-to-IoT Connection Topology: Direct vs Cloud vs Hybrid (2D)

Every mobile app that controls an IoT device has to pick a transport: a direct Bluetooth Low Energy link straight to the device, a cloud relay that hops App → Cloud → Device, or a hybrid that switches between the two. This 2D simulator draws both paths on a top-down map and drives real command packets across whichever one is active, while computing all three topologies' latency and delivery success independently every tick. Drag the IoT device away from the phone and the direct link's delivery probability falls off a cliff past its practical BLE range while its latency barely changes; the cloud path stays flat and distance-independent but pays a fixed round-trip cost and goes dark entirely during a simulated outage. Auto Hybrid mode watches both curves and switches transport the moment one becomes clearly better than the other — the live chart below shows its latency curve hugging Direct's while in range and Cloud's once out of range.