- add logging
- change outdated log statements
This commit is contained in:
ZanzyTHEbar 2022-12-13 01:29:39 +00:00
parent 2ecbeab231
commit b964bcdaa2
2 changed files with 3 additions and 5 deletions

View File

@ -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();

View File

@ -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;
}
}