rename function WebApiMqttClass::getRootCaCertInfo to more generic name WebApiMqttClass::getTlsCertInfo Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
20 lines
470 B
C++
20 lines
470 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#pragma once
|
|
|
|
#include <ESPAsyncWebServer.h>
|
|
|
|
#define MQTT_JSON_DOC_SIZE 10240
|
|
|
|
class WebApiMqttClass {
|
|
public:
|
|
void init(AsyncWebServer* server);
|
|
void loop();
|
|
|
|
private:
|
|
void onMqttStatus(AsyncWebServerRequest* request);
|
|
void onMqttAdminGet(AsyncWebServerRequest* request);
|
|
void onMqttAdminPost(AsyncWebServerRequest* request);
|
|
String getTlsCertInfo(const char* cert);
|
|
|
|
AsyncWebServer* _server;
|
|
}; |