mirror of
https://github.com/mattintech/pyBTMCP.git
synced 2026-07-11 12:01:53 +00:00
- Fix HR variation to use smooth sinusoidal algorithm instead of erratic jumps - Clamp HR values to ±3 of target (was exceeding bounds) - Add Pydantic Field validation for device values in API - Add runtime BPM validation in MCP server - Add battery slider control for HR monitor - Add distance display and reset button for treadmill - Add UI/API version display in header - Firmware: web portal improvements, battery/distance controls Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
// ============================================
|
|
// Firmware Version
|
|
// ============================================
|
|
#define FIRMWARE_VERSION "1.0.5"
|
|
|
|
// ============================================
|
|
// AP Mode Configuration
|
|
// ============================================
|
|
#define AP_SSID_PREFIX "BLE-Sim-" // Will append chip ID for uniqueness
|
|
#define AP_PASSWORD "" // Open network (or set a password)
|
|
#define AP_IP IPAddress(192, 168, 4, 1)
|
|
#define AP_GATEWAY IPAddress(192, 168, 4, 1)
|
|
#define AP_SUBNET IPAddress(255, 255, 255, 0)
|
|
|
|
// ============================================
|
|
// Default Values (used until configured)
|
|
// ============================================
|
|
#define DEFAULT_MQTT_PORT 1883
|
|
#define DEFAULT_DEVICE_ID_PREFIX "esp32-"
|
|
|
|
// ============================================
|
|
// Timing Configuration
|
|
// ============================================
|
|
#define BLE_NOTIFY_INTERVAL 1000 // BLE notification interval (ms)
|
|
#define MQTT_RECONNECT_INTERVAL 5000 // MQTT reconnect attempt interval (ms)
|
|
#define STATUS_REPORT_INTERVAL 10000 // Status report to MQTT (ms)
|
|
#define WIFI_CONNECT_TIMEOUT 15000 // WiFi connection timeout (ms)
|
|
|
|
// ============================================
|
|
// NVS Configuration Keys
|
|
// ============================================
|
|
#define NVS_NAMESPACE "ble-sim"
|
|
|
|
#endif // CONFIG_H
|