Doxygen with github
Loading...
Searching...
No Matches
src
ksf
misc
ksPinnedTlsClient.h
1
/*
2
* Copyright (c) 2020-2026, Krzysztof Strehlau
3
*
4
* This file is a part of the ksIotFrameworkLib IoT library.
5
* All licensing information can be found inside LICENSE.md file.
6
*
7
* https://github.com/cziter15/ksIotFrameworkLib/blob/master/LICENSE
8
*/
9
10
#pragma once
11
12
#include <memory>
13
#include <string>
14
15
#ifdef ESP32
16
#include <esp_arduino_version.h>
17
#endif
18
19
#if defined(ESP32) && ESP_ARDUINO_VERSION_MAJOR >= 3
20
class
NetworkClient;
21
namespace
ksf::misc {
using
ksNetworkClient_t = NetworkClient; }
22
#elif defined(ESP32) || defined(ESP8266)
23
class
WiFiClient;
24
namespace
ksf::misc {
using
ksNetworkClient_t = WiFiClient; }
25
#else
26
#error Platform not implemented.
27
#endif
28
29
namespace
ksf::misc
30
{
39
std::unique_ptr<ksNetworkClient_t> createPinnedTlsClient(
const
std::string& fingerprint);
40
}
Generated by
1.12.0