Closed hms-11 closed 2 years ago
I solved my issue, it isn't Edgent itself, my mistake, it is the included indicator.h file that causes the conflict.
I removed the
#include indicator.h
in the
BlynkEdgent.h
tab and all defines for it in
settings.h
// #define LEDC_CHANNEL_1 1
// #define LEDC_CHANNEL_2 2
// #define LEDC_CHANNEL_3 3
// #define LEDC_TIMER_BITS 10
// #define LEDC_BASE_FREQ 12000
and it successfully compiled. I don't have access to my field test board until tomorrow but I'm fairly confident in a successful load. Hopefully I can connect to the cloud as well.
Blynk library version: 1.0.0 IDE: Arduino IDE version: 2.0 Beta 7 Board type: ESP32-CAM AI-THINKER Model Additional modules: N/A
Scenario, steps to reproduce
This problem has to failure modes, and two different ways to reproduce: 1) New Sketch - If you start with the BlynkEdgent example sketch, and include in the driver/header file for an ESP-32CAM using the Espressif provided driver (esp_camera.h) the sketch will fail to comply, with many errors (a sample is in "actual result").
2) If you attempt to adapt a previously working "Old" Blynk program to "New" Blynk by adding in the device template and device name, along with the appropriate authentication token the sketch will compile with no errors, the device will connect to wifi and the internet, but will not connect to the Blynk servers. If you go back to using "Old" Blynk auth token and remove the template and device defines, the program again works properly with the "Old" Blynk app.
Expected Result
Error 1) I feel there is a library conflict between something involving the new Blynk and the Espressif camera driver esp_camera.h (https://github.com/espressif/esp32-camera/blob/master/driver/include/esp_camera.h). The inclusion of this library causes the program to not compile.
Error 2) I expect it to connect to the Blynk servers as directed, again, it seems as if there is a conflict between something involving connecting to the new Blynk server when combined with esp_camera.h
Actual Result
Error 1) Compile errors, attached:
Error 2) The device continually attempts to connect to Blynk servers after establishing a wifi connection and fails.