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);
99 typename Platform::TcpServerType*
server =
nullptr;
112 auto newClient = Platform::getAvailableClient(
server);
113 if (newClient.connected()) {
129 uint32_t timeout = 30;
130 bool gotRequest =
rtspSession->handleRequests(timeout);
146 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