Commit Graph

98 Commits (f661747be05c38d9ada0dab243cbeefcd7e5b266)

Author SHA1 Message Date
Miroslav Pivovarsky f661747be0
Merge branch 'master' into m5unitcams3 2026-10-28 12:13:18 +01:00
Miroslav Pivovarsky bca9d2ee37
Merge pull request #114 from timmmmmmmmm/master
Add support for M5Stack Timer camera
2026-10-28 11:47:33 +01:00
Miroslav Pivovarsky 42aa3fe51f
Update module_M5Stack_TimerCam.h
fix pinout
2026-10-28 11:47:11 +01:00
Miroslav Pivovarsky a0f0fb6463
Merge pull request #136 from sirmc/patch-1
Remove Content-Length header from chunked response
2026-10-28 10:48:01 +01:00
Pawel Chojnacki 559015a1ae docs: add M5Stack Unit CamS3 setup guide 2026-10-15 19:59:38 +02:00
Atreide a33ab8b6f3 Fix WiFi never reconnecting after boot without network, and watchdog crash
Two problems made the camera stay offline after a WiFi outage (router
reboot, WiFi briefly turned off) until it was power-cycled manually:

1. If the configured SSID was not visible at boot, Init() skipped
   WiFi.begin() entirely. Both recovery paths (WiFiReconnect() and
   WiFiWatchdog()) only run once FirstConnected is true, which is set on
   the first GOT_IP event, so nothing ever retried and the camera stayed
   disconnected forever.
   -> Start the STA connection even when the SSID is not found at boot,
      and let WiFiReconnect() call WiFiStaConnect() periodically while the
      camera has never been connected since boot.

2. When the STA connection was lost, WiFiWatchdog() ran a full WiFi scan
   (scanNetworks + JSON document + String formatting) from the
   WiFiWatchdog task, which only has a 2200 B stack. This crashed the MCU
   right after the disconnect (LoadProhibited in the task WDT list,
   followed by a stack canary panic). The reboot then hit problem 1.
   -> Remove the scan from the watchdog (it was only used for a log
      message) and raise the task stack to 4096 B as a safety margin.

Tested on a Seeed XIAO ESP32-S3 Sense (OV3660 sensor), firmware 1.1.2:
WiFi turned off on the router for 3 minutes; the camera rebooted via the
WiFi watchdog, kept retrying, and reconnected on its own when the network
came back. No more Guru Meditation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 00:20:52 +02:00
Sebastian Österlund 0648a513e8
Remove Content-Length header from chunked response
HTTP does not allow Content-Length header to be set when Transfer-Encoding is present (https://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.4.4)

When chunked, Transfer-Encoding is set. This causes issues, for example when adding the camera to HomeAssistant, since it causes an error in the http library.

This commit removes the Content-Length header in this case.
2026-02-24 09:46:17 +01:00
Tim van der Heide e8fcf9592d Add support for M5Stack Timer camera 2025-04-25 12:44:19 +02:00
Pawel Chojnacki f123e3b608 Add M5 Unit Cam S3 2025-01-11 14:06:03 +01:00
Miroslav Pivovarsky 8dd9cf66e9 fix typo 2025-01-02 20:18:19 +01:00
Miroslav Pivovarsky 5608b4c4c4 added ESP32-S3 WROOM Freenove board 2025-01-02 20:16:52 +01:00
Miroslav Pivovarsky df58d5d5cb update libs 2025-01-02 20:16:06 +01:00
Miroslav Pivovarsky 80711f9722
Update mcu_cfg.h 2025-01-02 20:12:03 +01:00
Miroslav Pivovarsky d7e39a1a4d
Merge pull request #92 from muesli/bump-version
Bump to v1.1.1
2025-01-02 20:08:52 +01:00
Miroslav Pivovarsky e93f7ee0e4 update pinout for ESP32-S3 wroom Freenove 2024-12-28 12:55:25 +01:00
Miroslav Pivovarsky 999968ef94 Added support for ESP32-S3 Wroom Freenove 2024-12-27 23:34:48 +01:00
Miroslav Pivovarsky 8180aa84c0 update libs 2024-12-27 23:33:40 +01:00
Christian Muehlhaeuser 7a90f47a1e Bump to v1.1.1 2024-12-03 00:08:31 +01:00
Miroslav Pivovarsky 607c768832 update jquery lib to 3.7.1 2024-11-26 21:58:18 +01:00
Miroslav Pivovarsky 41fad4bcd3 change stack size 2024-11-26 21:57:49 +01:00
Miroslav Pivovarsky 1e22640cdf update tasks stack size 2024-11-20 21:15:18 +01:00
Miroslav Pivovarsky d55035b31a Added FW version in the info message for the Prusa Connect 2024-11-20 21:14:27 +01:00
Miroslav Pivovarsky d9394e4c6b Update libs. arduino-esp32, ESPAsyncWebServer, AsyncTCP, ArduinoJson, DHTnew 2024-11-20 21:13:53 +01:00
Miroslav Pivovarsky cf6af3958f regenerate WebPage.h 2024-11-20 21:13:00 +01:00
Zev Eisenberg 4edd60f1c3 Clarify comments. 2024-10-21 22:52:59 -04:00
Zev Eisenberg 39f10d23df Fix copypasta action comment. 2024-10-21 22:51:15 -04:00
Zev Eisenberg b29b541eb3 Add newline at end of file. 2024-10-21 22:31:03 -04:00
Zev Eisenberg a80b349576 Wording. 2024-10-21 22:30:56 -04:00
Zev Eisenberg 49c4bb80fe Pluralize seconds. 2024-10-21 22:23:28 -04:00
Miroslav Pivovarsky 9bd5861a0c updated arduino-esp32 to 3.0.4 2024-08-05 18:23:57 +02:00
Miroslav Pivovarsky 218a3cb02d updated WiFi WDG 2024-08-03 21:47:15 +02:00
Miroslav Pivovarsky be284668b1 update arduino-esp32 to 3.0.3 2024-08-03 21:44:39 +02:00
Miroslav Pivovarsky 627b951155 added serial command loglevel 2024-08-03 21:44:09 +02:00
Miroslav Pivovarsky 6bf260b72c Added a parameter to disable password checks for WiFi AP networks that are not encrypted. 2024-07-31 21:26:34 +02:00
Miroslav Pivovarsky 71de485127 added help 2024-07-31 21:00:26 +02:00
Miroslav Pivovarsky d1949c0159 update docu 2024-07-12 23:36:35 +02:00
Miroslav Pivovarsky 220573519a update 2024-07-12 22:00:01 +02:00
Miroslav Pivovarsky 3f85abd5f3 update cfg for the ESP32-S3-cam board 2024-07-12 21:58:19 +02:00
Miroslav Pivovarsky 2dedf106d1 disable WiFi sleep 2024-07-12 21:56:58 +02:00
Miroslav Pivovarsky 3eb1262366 changed function for sending big data from WEB server 2024-07-12 21:56:09 +02:00
Miroslav Pivovarsky 44e6028a0a update stack size 2024-07-12 21:54:50 +02:00
Miroslav Pivovarsky 20d030c808 added default cfg for the external temperature sensor 2024-07-12 21:53:50 +02:00
Miroslav Pivovarsky adf6747aa9 added support for the ESP32-S3-CAM board 2024-07-12 21:52:54 +02:00
Miroslav Pivovarsky b64d86d308 "Added support for an external temperature sensor to more boards. 2024-07-12 21:51:29 +02:00
Miroslav Pivovarsky d17f037507 added css version, and added notification for sending snapshot 2024-07-12 21:50:13 +02:00
Miroslav Pivovarsky 572da07167 Update ESPAsyncWebServer to 3.0.6 2024-07-12 21:46:53 +02:00
Miroslav Pivovarsky ed92eb2fdb update FW name for XIAO cam 2024-07-12 21:46:45 +02:00
Miroslav Pivovarsky 7a787943dd added support for the XIAO ESP32-S3 2024-07-12 21:45:22 +02:00
Miroslav Pivovarsky e99a5b6afa First version of the external temperature/humidity sensor 2024-07-12 21:44:08 +02:00
Miroslav Pivovarsky d792a1c714 update logs 2024-06-29 17:30:18 +02:00