mirror of
https://github.com/mattintech/pyBTMCP.git
synced 2026-07-11 11:51:53 +00:00
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>
28 lines
708 B
INI
28 lines
708 B
INI
; 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-*
|