2018-11-26 12:58:15 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the "bluetoothheater" distribution
|
|
|
|
* (https://gitlab.com/mrjones.id.au/bluetoothheater)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018 Ray Jones <ray@mrjones.id.au>
|
|
|
|
* Copyright (C) 2018 James Clark
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-11-07 05:07:11 +01:00
|
|
|
// BTCWebServer.h
|
|
|
|
|
|
|
|
#ifndef _BTCWEBSERVER_h
|
|
|
|
#define _BTCWEBSERVER_h
|
|
|
|
|
2019-07-07 09:18:38 +02:00
|
|
|
void initWebServer();
|
|
|
|
bool doWebServer();
|
2020-05-09 11:17:21 +02:00
|
|
|
void stopWebServer();
|
2018-11-26 11:26:38 +01:00
|
|
|
|
2019-07-07 09:18:38 +02:00
|
|
|
bool sendWebSocketString(const char* Str);
|
|
|
|
bool isWebSocketClientChange();
|
|
|
|
void listSPIFFS(const char * dirname, uint8_t levels, String& HTMLreport, int withHTMLanchors=0);
|
2018-11-07 05:07:11 +01:00
|
|
|
|
2020-03-25 10:28:12 +01:00
|
|
|
const char* getWebContent(bool start);
|
2020-03-24 11:14:41 +01:00
|
|
|
void getWebContent(const char* filename);
|
2020-04-26 08:15:08 +02:00
|
|
|
bool checkWebSocketSend();
|
2020-03-24 11:14:41 +01:00
|
|
|
|
2018-11-07 05:07:11 +01:00
|
|
|
#endif
|
|
|
|
|