Search found 6 matches

by zarar384
Sun Mar 22, 2020 11:51 am
Forum: ESP32 Arduino
Topic: ESP32 Loading .jpg images into flash memory SPIFFS
Replies: 0
Views: 4014

ESP32 Loading .jpg images into flash memory SPIFFS

Hello. Can you tell me how can I save 5 images to flash and then delete after 10 seconds? Checking the picture and saving it in flash memory: char FILE_PHOTO[10]; int i = 1; 1. bool checkPhoto( fs::FS & fs ) { 2. File f_pic = fs.open( FILE_PHOTO ); 3. unsigned int pic_sz = f_pic.size(); 4. return ( ...
by zarar384
Sat Mar 21, 2020 1:53 pm
Forum: ESP32 Arduino
Topic: ESP32 Loading .jpg images into flash memory SPIFFS
Replies: 0
Views: 2646

ESP32 Loading .jpg images into flash memory SPIFFS

Hello.
Can you tell me how can I save 5 images to flash and then delete after 10 seconds?
by zarar384
Tue Mar 17, 2020 10:08 am
Forum: ESP32 Arduino
Topic: invalid operands of types 'const char*' and 'const char [8]' to binary 'operator+'
Replies: 3
Views: 8151

Re: invalid operands of types 'const char*' and 'const char [8]' to binary 'operator+'

uint8_t num = 12; String stringOne, stringTwo, stringThree, stringFour; String base64image = String(); stringOne = String("id=7292&num="); stringThree = String("&image="); stringFour = String(base64::encode(fb->buf, fb->len)); stringTwo = String(num); base64image = stringOne + stringTwo + stringThr...
by zarar384
Mon Mar 16, 2020 8:50 pm
Forum: ESP32 Arduino
Topic: invalid operands of types 'const char*' and 'const char [8]' to binary 'operator+'
Replies: 3
Views: 8151

invalid operands of types 'const char*' and 'const char [8]' to binary 'operator+'

if (camClient.connect(postHost, postHttpPort)) { uint8_t num = 1; String base64image = "id=7292&num=" + num + "&image=" + (base64::encode(fb->buf, fb->len)); Serial.println("connection"); camClient.println("POST /test/image/post.php HTTP/1.0"); camClient.println("Host: cloud.****.com"); camClient.pr...
by zarar384
Thu Mar 12, 2020 10:32 pm
Forum: ESP32 Arduino
Topic: How to send encoded image using HTTP POST? ESP32
Replies: 1
Views: 4354

How to send encoded image using HTTP POST? ESP32

Hello. I can’t figure out how to send an image encoded via base64 via HTTP POST. I encode the image through base64: String base64image = base64::encode(fb->buf, fb->len); Serial.println(base64image); Trying to send using HTTP POST: if (!camClient.connect(postHost, postHttpPort)) { camClient.println(...
by zarar384
Fri Mar 06, 2020 2:22 pm
Forum: ESP32 Arduino
Topic: ESP32 cam photo
Replies: 1
Views: 6133

ESP32 cam photo

Hello I use ESP32 cam Tell me please I want to get a photo every 5 minutes. What am I doing wrong? #include "esp_camera.h" #include <WiFi.h> #include <SPIFFS.h> // // WARNING!!! Make sure that you have either selected ESP32 Wrover Module, // or another board which has PSRAM enabled // boolean takeNe...