42template <
typename Platform>
54 bool begin(
const char* ssid,
const char* password) {
61 if (!
serverTask.begin([
this]() { serverThreadLoop(); })) {
62 LOGE(
"Couldn't start server thread");
80 unsigned long lastCheck =
millis();
86 LOGI(
"Client connected");
87 if (!
sessionTask.begin([
this]() { sessionThreadLoop(); })) {
88 LOGE(
"Couldn't start sessionThread");
89 Platform::closeSocket(&this->
client);
95 LOGD(
"Waiting for current session to end (numClients: %d)", this->
client_count);
97 int time = 200 - (
millis() - lastCheck);
98 if (time < 0) time = 0;
103 LOGD(
"RTSP Task running");