I am trying to use ethernet and wifi at the same time, but when i add both libraries it gives an error, how can i do that?
#include <WiFi.h> // Wifi library
#include <WiFiClient.h> // Wifi library
#include <BlynkSimpleEsp32.h> // Wifi library
#include <SPI.h> //Ethernet library
#include <Ethernet2.h> //Ethernet library
#include <BlynkSimpleEthernet2.h> //Ethernet library
Library <BlynkSimpleEsp32.h> and <BlynkSimpleEthernet2.h> conflict. It gives an error like
BlynkSimpleEsp32.h:96:25: note: previous declaration as 'BlynkEsp32Client _blynkTransport'
static BlynkEsp32Client _blynkTransport(_blynkWifiClient);
BlynkSimpleEthernet2.h:24:36: error: conflicting declaration 'BlynkEthernet Blynk'
BlynkEthernet Blynk(_blynkTransport);