mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
update
- add logging - change outdated log statements
This commit is contained in:
parent
2ecbeab231
commit
b964bcdaa2
@ -52,7 +52,7 @@ void OTA::SetupOTA()
|
||||
} });
|
||||
|
||||
log_i("Starting up basic OTA server");
|
||||
log_i("OTA will be live for 30s, after which it will be disabled until restart");
|
||||
log_i("OTA will be live for 5 minutes, after which it will be disabled until restart");
|
||||
auto mdnsConfig = _deviceConfig->getMDNSConfig();
|
||||
ArduinoOTA.setHostname(mdnsConfig->hostname.c_str());
|
||||
ArduinoOTA.begin();
|
||||
|
||||
@ -33,8 +33,8 @@ esp_err_t StreamHelpers::stream(httpd_req_t *req)
|
||||
fb = esp_camera_fb_get();
|
||||
if (!fb)
|
||||
{
|
||||
log_e("Camera capture failed");
|
||||
res = ESP_FAIL;
|
||||
log_e("Camera capture failed with error = %d", res);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -105,9 +105,7 @@ int StreamServer::startStreamServer()
|
||||
{
|
||||
httpd_register_uri_handler(camera_stream, &stream_page);
|
||||
Serial.println("Stream server initialized");
|
||||
Serial.print("\n\rThe stream is under: http://");
|
||||
Serial.print(WiFi.localIP());
|
||||
Serial.printf(":%i\n\r", this->STREAM_SERVER_PORT);
|
||||
Serial.printf("\n\rThe stream is under: http://%s:%d\n\r", WiFi.localIP().toString().c_str(), this->STREAM_SERVER_PORT);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user