I know that Edgent is an option but I want to use it to have the OTA and Wifi saving credentials.
I modified the example with the two defines for Blynk Iot, ulpoaded in my ESP32 TTGO T1 and it works fine and I see my device Online.
I also added the 2 defines in my old sketch and it works great.
Now i’m trying to merge my old sketch into the edgnet example.
When I compile I receive errore and can’t go further.
The error comes out after adding the BlynkSimpleEsp32.h in my sketch.
Invalid library found in D:\IoT\Arduino\GitHub\bek\libraries\libraries: no headers files (.h) found in D:\IoT\Arduino\GitHub\bek\libraries\libraries
sketch\blynk_app.cpp.o: In function `blynk_dbg_print(char const*, …)’:
D:\IoT\Arduino\GitHub\bek\libraries\Blynk\src/Blynk/BlynkParam.h:348: multiple definition of `blynk_dbg_print(char const*, …)’
sketch\Edgent_ESP32.ino.cpp.o:D:\IoT\Arduino\GitHub\bek\libraries\Blynk\src/Blynk/BlynkDebug.h:179: first defined here
sketch\blynk_app.cpp.o:(.bss.Blynk+0x0): multiple definition of `Blynk’
sketch\Edgent_ESP32.ino.cpp.o:(.bss.Blynk+0x0): first defined here
sketch\blynk_app.cpp.o:(.literal.BlynkWidgetWrite0+0xc): undefined reference to `g_event_queue_handle’
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for “SD.h”
Used: C:\Users\nasse\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\SD
Not used: D:\IoT\Arduino\Arduino-nightly\libraries\SD
Multiple libraries were found for “WiFi.h”
Used: C:\Users\nasse\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi
Not used: D:\IoT\Arduino\Arduino-nightly\libraries\WiFi
exit status 1
Error compiling for board TTGO T1.
Is there any way to do the reverse, I mean merging Edgent into my Old sketch keeping only the OTA functionality?
thanks