mirror of
https://github.com/mattintech/pyBTMCP.git
synced 2026-07-11 10:41:54 +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>
31 lines
520 B
C
31 lines
520 B
C
#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
|