📡 BLE Virtual Device Simulator & Mock ServerCreate, configure, simulate, and **mock** a local Bluetooth Low Energy (GATT Server) peripheral directly from VS Code for testing.
✨ Why use this extension?Designed for IoT developers, mobile engineers (Flutter, React Native, iOS, Android), and engineering students, this extension removes the need for physical hardware. Easily mock BLE devices during the early stages of Bluetooth testing and application development. It creates a real-time communication bridge between your computer and your IoT simulators (like Wokwi) via WebSocket, or emits real Bluetooth signals (depending on your OS). Key Features
🚀 Quick Start
💎 All Features Unlocked (Community Feedback Phase)
Enjoy testing and don't hesitate to share your feedback or feature requests! 🖥️ OS CompatibilityThe ability to emit actual Bluetooth signals (Broadcasting) depends on your operating system:
A badge at the top of the interface will always indicate your hardware status: 🟢 Active or 🟠 Disabled (Sim Only). 🔌 Connecting to Wokwi (WebSocket Bridge)The extension exposes a local bridge on Important for Wokwi users: Add this to your
JSON PayloadsVS Code ➡️ ESP32 When you modify a value in the Live Control Panel, your ESP32 receives:
ESP32 ➡️ VS Code To update a value in the extension from your ESP32, send:
❓ FAQ & TroubleshootingWhy does my Wokwi simulator fail to connect on port 8080 (Connection Refused)?By default, Wokwi blocks access to your local machine. You must explicitly allow the WebSocket bridge by adding port 8080 to yourwokwi.toml file under [[net.forward]].
Why does the Hardware BLE status say "Disabled (Sim Only)" on Windows?The Windows operating system severely restricts direct low-level access to the Bluetooth chip for creating GATT Servers. To prevent crashes, the extension automatically disables the native radio and falls back to the WebSocket Simulator mode. You can still fully test your IoT flows using Wokwi!I get a permission error on Linux when trying to start Advertising.On Linux, the BlueZ bluetooth stack requires special privileges to broadcast signals. The extension will show an "Auto-Configure" button: click it to automatically generate the necessarysudo apt-get and setcap commands in your terminal.
How can I simulate multiple BLE devices at the same time?Simply click the "+" icon in the device tabs to spawn a new isolated virtual peripheral. Multi-device simulation is currently fully unlocked for all users without any license required!💬 Feedback & Support
Developed with ❤️ by CodeHorizon.
|
