This code is Arduino SDK compatible. Need ESP32 framework for Arduino (https://github.com/espressif/arduino-esp32) and working Arduino ecosystem to be build.
For Web cameras in the PrusaConnect is launched a WEB page on the Android/IOS/laptop device, which then sending photos from the camera to the prusaconnect backend. Here is the implementation of a WEB ...