Skip to content

Commit 466a9f4

Browse files
committed
Platformio is broken - note
1 parent fc4e0f3 commit 466a9f4

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ https://randomnerdtutorials.com/esp32-cam-troubleshooting-guide/
4949

5050
### Known Issues
5151

52+
Builds made with PlatformIO are currently (v4.0) broken; the stream will die shortly after starting. See https://github.com/easytarget/esp32-cam-webserver/issues/218 for more info.
53+
5254
The ESP32 itself is susceptible to the usual list of WiFi problems, not helped by having small antennas, older designs, congested airwaves and demanding users. The majority of disconnects, stutters and other comms problems are simply due to 'WiFi issues'. The AI-THINKER camera module & esp32 combination is quite susceptible to power supply problems affecting both WiFi conctivity and Video quality; short cabling and decent power supplies are your friend here; also well cooled cases and, if you have the time, decoupling capacitors on the power lines.
5355

5456
A basic limitation of the sketch is that it can can only support one stream at a time. If you try to connect to a cam that is already streaming (or attempting to stream) you will get no response and, eventually, a timeout. The stream itself is a [MJPEG stream](https://en.wikipedia.org/wiki/Motion_JPEG), which relies on the client (the web browser) to hold the connection open and request each new frame in turn via javascript. This can cause errors when browsers run into Javascript or caching problem, fail to request new frames or refuse to close the connection.

platformio.ini

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
11
; PlatformIO Project Configuration File
22
; https://docs.platformio.org/page/projectconf.html
33

4+
; ================================================================
5+
; = =
6+
; = DO NOT USE PLATFORMIO FOR THIS PROJECT =
7+
; = =
8+
; = 14 March 2022 : When built with Platformio this project =
9+
; = does not run properly; any streams you start will fail =
10+
; = with 'ESP_ERR_HTTPD_RESP_SEND' in the serial console and =
11+
; = ERR_INVALID_CHUNK_ENCODING 200 (OK) in the browser console.=
12+
; = =
13+
; = This is a difficult issue, and currently unresolved. =
14+
; = See: =
15+
; = https://github.com/easytarget/esp32-cam-webserver/issues/218 =
16+
; = =
17+
; = The focus of thei project is to show a expanded example =
18+
; = using the official Arduino IDE. PlatformIO is, and has =
19+
; = always been, a nice-to-have; so I will be releasing 4.x =
20+
; = without platformio support. See the above github issue if =
21+
; = you are able to help fixing this. =
22+
; = =
23+
; ================================================================
24+
;
25+
426
; The esp32-cam-webserver project is intended to be easily compilable
527
; with the stock Arduino IDE.
628
; - Maintaining compatibility with other development environments
729
; is important, but I wont accept changes to the PlatformIO build that
830
; break compatibilty with the stock IDE. Eg by using non-standard
9-
; partition schemes or overriding Arduino defined limits, etc.
31+
; partition schemes or overriding Arduino defined limits, etc.
1032

1133
[platformio]
1234
src_dir = ./

0 commit comments

Comments
 (0)