From d77b86130350768fb6e0f22934989781f4d33f3e Mon Sep 17 00:00:00 2001 From: Tertius76 <45272860+Tertius76@users.noreply.github.com> Date: Tue, 12 Jan 2021 00:21:08 +0100 Subject: [PATCH 1/2] update personal settings and upload port --- myconfig.sample.h | 164 ---------------------------------------------- platformio.ini | 1 + 2 files changed, 1 insertion(+), 164 deletions(-) delete mode 100644 myconfig.sample.h diff --git a/myconfig.sample.h b/myconfig.sample.h deleted file mode 100644 index fed733a..0000000 --- a/myconfig.sample.h +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Rename this example to 'myconfig.h' and fill in your details. - * - * The local config is in the '.gitignore' file, which helps to keep details secret. - */ - - -/* Give the camera a name for the web interface */ -#define CAM_NAME "ESP32 camera server" - - -/* - * WiFi Settings - * - * For the simplest connection to an existing network - * just replace your ssid and password in the line below. - */ - -struct station stationList[] = {{"my_ssid","my_password", true}}; - -/* - * You can extend the stationList[] above with additional SSID+Password pairs - -struct station stationList[] = {{"ssid1", "pass1", true}, - {"ssid2", "pass2", true}, - {"ssid3", "pass3", false}}; - - * Note the use of nested braces '{' and '}' to group each entry, and commas ',' to seperate them. - * - * The first entry (ssid1, above) in the stationList is special, if WIFI_AP_ENABLE has been uncommented (below) - * it will be used for the AccessPoint ssid and password. See the comments there for more. - * - * The 'dhcp' setting controls whether the station uses DHCP or static IP settings; if in doubt leave 'true' - * - * You can also use a BSSID (eg: "2F:67:94:F5:BB:6A", a colon seperated mac address string) in place of - * the ssid to force connections to specific networks even when the ssid's collide, - */ - -/* Extended WiFi Settings */ - -/* - * Hostname. Optional, uncomment and set if desired - * - used in DHCP request when connecting to networks, not used in AP mode - * - Most useful when used with a static netwrk config, not all routers respect this setting - * - * The URL_HOSTNAME will be used in place of the IP address in internal URL's - */ - -// #define HOSTNAME "esp-cam" -// #define URL_HOSTNAME "esp-cam" - -/* - * Static network settings for client mode - * - * Note: The same settings will be applied to all client connections where the dhcp setting is 'false' - * You must define all three: IP, Gateway and NetMask - */ -// warning - IP addresses must be seperated with commas (,) and not decimals (.) -// #define ST_IP 192,168,0,123 -// #define ST_GATEWAY 192,168,0,2 -// #define ST_NETMASK 255,255,255,0 -// One or two optional DNS servers can be supplied, but the current firmware never uses them ;-) -// #define ST_DNS1 192,168,0,2 -// #define ST_DNS2 8,8,8,8 - -/* - * AccessPoint; - * - * Uncomment to enable AP mode; - * - */ -// #define WIFI_AP_ENABLE - -/* AP Mode Notes: - * - * Once enabled the AP ssid and password will be taken from the 1st entry in the stationList[] above. - * - * If there are further entries listed they will be scanned at startup in the normal way and connected to - * if they are found. AP then works as a fallback mode for when there are no 'real' networks available. - * - * Setting the 'dhcp' field to true for the AP enables a captive portal and attempts to send - * all visitors to the webcam page, with varying degrees of success depending on the visitors - * browser and other settings. - */ -// Optionally change the AccessPoint ip address (default = 192.168.4.1) -// warning - IP addresses must be seperated with commas (,) and not decimals (.) -// #define AP_ADDRESS 192,168,4,1 - -// Uncomment this to force the AccessPoint channel number, default = 1 -// #define AP_CHAN 1 - -/* - * Port numbers for WebUI and Stream, defaults to 80 and 81. - * Uncomment and edit as appropriate - */ -// #define HTTP_PORT 80 -// #define STREAM_PORT 81 - -/* - * Wifi Watchdog defines how long we spend waiting for a connection before retrying, - * and how often we check to see if we are still connected, milliseconds - * You may wish to increase this if your WiFi is slow at conencting, - */ -// #define WIFI_WATCHDOG 5000 - -/* - * Camera Defaults - * - */ -// Initial Reslolution, default SVGA -// available values are: FRAMESIZE_[QQVGA|HQVGA|QVGA|CIF|VGA|SVGA|XGA|SXGA|UXGA|QXGA(ov3660)] -// #define DEFAULT_RESOLUTION FRAMESIZE_SVGA - -// Hardware Horizontal Mirror, 0 or 1 (overrides default board setting) -// #define H_MIRROR 0 - -// Hardware Vertical Flip , 0 or 1 (overrides default board setting) -// #define V_FLIP 1 - -// Browser Rotation (one of: -90,0,90, default 0) -// #define CAM_ROTATION 0 - - -/* - * Additional Features - * - */ -// Default Page: uncomment to make the full control page the default, otherwise show simple viewer -// #define DEFAULT_INDEX_FULL - -// Uncomment to disable the illumination lamp features -// #define LAMP_DISABLE - -// Define a initial lamp setting as a percentage, defaults to 0% -// #define LAMP_DEFAULT 0 - -// Assume we have SPIFFS/LittleFS partition, uncomment to disable this. -// Controls will still be shown in the UI but are inoperative. -// #define NO_FS - -// Uncomment to enable Face Detection (+ Recognition if desired) by default -// Notes: You must set DEFAULT_RESOLUTION (above) to FRAMESIZE_CIF or lower before enabling this -// Face recognition enrolements are currently lost between reboots. -// #define FACE_DETECTION -// #define FACE_RECOGNITION - -// Uncomment to enable camera debug info on serial by default -// #define DEBUG_DEFAULT_ON - -/* - * Camera Hardware Selectiom - * - * You must uncomment one, and only one, of the lines below to select your board model. - * Remember to also select the board in the Boards Manager - * This is not optional - */ -#define CAMERA_MODEL_AI_THINKER // default -// #define CAMERA_MODEL_WROVER_KIT -// #define CAMERA_MODEL_ESP_EYE -// #define CAMERA_MODEL_M5STACK_PSRAM -// #define CAMERA_MODEL_M5STACK_V2_PSRAM -// #define CAMERA_MODEL_M5STACK_WIDE -// #define CAMERA_MODEL_M5STACK_ESP32CAM // Originally: CAMERA_MODEL_M5STACK_NO_PSRAM -// #define CAMERA_MODEL_TTGO_T_JOURNAL diff --git a/platformio.ini b/platformio.ini index 74a34ef..f106fed 100644 --- a/platformio.ini +++ b/platformio.ini @@ -15,3 +15,4 @@ src_dir = ./ platform = espressif32 board = esp32cam framework = arduino +upload_port = /dev/cu.usbserial-11400 \ No newline at end of file From 1fa49a20104fec790b2be42217c4389b97f9e8db Mon Sep 17 00:00:00 2001 From: Tertius76 <45272860+Tertius76@users.noreply.github.com> Date: Tue, 12 Jan 2021 00:23:06 +0100 Subject: [PATCH 2/2] test --- platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/platformio.ini b/platformio.ini index f106fed..d0ea427 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,6 +11,7 @@ [platformio] src_dir = ./ + [env:esp32cam] platform = espressif32 board = esp32cam