28template <
typename Platform>
48 bool begin(
const char* ssid,
const char* password) {
54 WiFi.setSleep(WIFI_PS_NONE);
56 Serial.print(
"connect to rtsp://");
70 LOGI(
"RTSP server started on port %d",
port);
97 typename Platform::TcpServerType*
server =
nullptr;
98 typename Platform::TcpClientType
client;
110 auto newClient = Platform::getAvailableClient(
server);
111 if (newClient.connected()) {
127 uint32_t timeout = 30;
128 bool gotRequest =
rtspSession->handleRequests(timeout);
144 Platform::closeSocket(&
client);
static HardwareSerial Serial
Definition Arduino.h:179
#define LOGI(...)
Definition AudioLoggerIDF.h:28
void stop()
stops any further processing by spinning in an endless loop
Definition AudioRuntime.h:71