mirror of
https://github.com/John-Varghese-EH/ESP32-CAM-ONVIF.git
synced 2025-11-16 18:58:01 +00:00
ESP32CAM-ONVIF.ino
This commit is contained in:
35
ESP32CAM-ONVIF/ESP32CAM-ONVIF.ino
Normal file
35
ESP32CAM-ONVIF/ESP32CAM-ONVIF.ino
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
ESP32CAM-ONVIF
|
||||
ONVIF + RTSP + WebConfig + SD + Motion Detection Camera Firmware
|
||||
Made with ❤️ by J0X
|
||||
*/
|
||||
|
||||
#include "camera_control.h"
|
||||
#include "rtsp_server.h"
|
||||
#include "onvif_server.h"
|
||||
#include "web_config.h"
|
||||
#include "sd_recorder.h"
|
||||
#include "motion_detection.h"
|
||||
#include "utils.h"
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
printBanner();
|
||||
if (!camera_init()) fatalError("Camera init failed!");
|
||||
if (!wifi_connect()) fatalError("WiFi connect failed!");
|
||||
web_config_start();
|
||||
rtsp_server_start();
|
||||
onvif_server_start();
|
||||
sd_recorder_init();
|
||||
motion_detection_init();
|
||||
Serial.println("[INFO] Setup complete. System running.");
|
||||
}
|
||||
|
||||
void loop() {
|
||||
web_config_loop();
|
||||
rtsp_server_loop();
|
||||
onvif_server_loop();
|
||||
motion_detection_loop();
|
||||
sd_recorder_loop();
|
||||
// power management, stats, etc.
|
||||
}
|
||||
Reference in New Issue
Block a user