mirror of
https://github.com/mattintech/pyBTMCP.git
synced 2026-07-11 12:01:53 +00:00
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
|