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:
30
firmware/esp32_ble_sim/include/web_portal.h
Normal file
30
firmware/esp32_ble_sim/include/web_portal.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef WEB_PORTAL_H
|
||||
#define WEB_PORTAL_H
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
/**
|
||||
* Initialize and start the web portal
|
||||
* Runs on AP interface at 192.168.4.1
|
||||
*/
|
||||
void setupWebPortal();
|
||||
|
||||
/**
|
||||
* Handle web portal requests (call in loop)
|
||||
*/
|
||||
void handleWebPortal();
|
||||
|
||||
/**
|
||||
* Get status info for web portal display
|
||||
*/
|
||||
struct PortalStatus {
|
||||
bool wifiConnected;
|
||||
bool mqttConnected;
|
||||
String ipAddress;
|
||||
String deviceType;
|
||||
bool bleStarted;
|
||||
};
|
||||
|
||||
void updatePortalStatus(const PortalStatus& status);
|
||||
|
||||
#endif // WEB_PORTAL_H
|
||||
Reference in New Issue
Block a user