File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
esp32-cam-send-jpeg-serial Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,8 @@ void setup() {
208
208
}
209
209
210
210
void loop () {
211
+
212
+ Serial.println (" ESP32-CAM Send JPG over Serial v0.2" );
211
213
212
214
char filename[] = " /cam.jpg" ;
213
215
Original file line number Diff line number Diff line change @@ -181,15 +181,17 @@ bool get_camera_image(bool debug_camera) {
181
181
182
182
// #ifdef GET_IMAGE_DEBUG
183
183
if (debug_camera)
184
- Serial.println (" Received from ESP32-CAM hex encoded:\n " );
184
+ Serial.println (" Received from ESP32-CAM ( hex encoded part is JPG image) :\n " );
185
185
// #endif
186
186
finished = false ;
187
187
188
188
unsigned long time_start = millis ();
189
189
while ((!finished) && ((millis () - time_start) < CAMERA_TIMEOUT)) {
190
190
191
191
if (Serial2.available ()) { // If anything comes in Serial2
192
- byte octet = Serial2.read ();
192
+ byte octet = Serial2.read ();
193
+ if ((!start_flag_detected) && (debug_camera))
194
+ Serial.write (octet);
193
195
194
196
if (start_flag_complete) {
195
197
// Serial.println("Start flag complete detected");
You can’t perform that action at this time.
0 commit comments