mirror of
https://github.com/mattintech/pyBTMCP.git
synced 2026-07-11 13:11:53 +00:00
Initial release v1.0.0 - BLE Device Simulator with MCP Integration
Features: - MCP server with tools for AI-controlled device simulation - FastAPI backend with REST API and WebSocket support - Real-time device updates via WebSocket - Web UI for manual device control - ESP32 firmware for BLE device simulation - Docker containerization with MQTT broker Supported device types: - Heart Rate Monitor (BLE Heart Rate Service) - Treadmill (BLE Fitness Machine Service) - Bike Trainer (BLE Cycling Power Service) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
27
firmware/esp32_ble_sim/platformio.ini
Normal file
27
firmware/esp32_ble_sim/platformio.ini
Normal file
@@ -0,0 +1,27 @@
|
||||
; PlatformIO Project Configuration File
|
||||
;
|
||||
; BLE Device Simulator for ESP32
|
||||
; Supports: Heart Rate Monitor, Treadmill (Fitness Machine)
|
||||
|
||||
[env:esp32]
|
||||
platform = espressif32
|
||||
board = esp32dev
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
|
||||
; Use NimBLE for smaller footprint and better BLE support
|
||||
lib_deps =
|
||||
h2zero/NimBLE-Arduino@^1.4.0
|
||||
knolleary/PubSubClient@^2.8
|
||||
bblanchon/ArduinoJson@^7.0.0
|
||||
|
||||
; Build flags
|
||||
build_flags =
|
||||
-D CONFIG_BT_NIMBLE_ROLE_PERIPHERAL=1
|
||||
-D CONFIG_BT_NIMBLE_ROLE_CENTRAL=0
|
||||
-D CONFIG_BT_NIMBLE_ROLE_OBSERVER=0
|
||||
-D CONFIG_BT_NIMBLE_ROLE_BROADCASTER=1
|
||||
|
||||
; Upload settings (adjust port as needed)
|
||||
; upload_port = /dev/cu.usbserial-*
|
||||
; monitor_port = /dev/cu.usbserial-*
|
||||
Reference in New Issue
Block a user