I would like to combine two kinds of connexion like WIFI and Ethernet (I have already made my code to work with ENC28J60 and ESP8266 but not together). Did anyone once do that?
PD: My aim is not two use both of them at the same time but for example look if the wifi connexion is available and if it is not, try with Ethernet for example or being able to choose between one of those.
Between using Blynk.config() as a non-blocking command, and the fact the BlynkTimer works without server connection, then using lambda functions with timers, one could even put the logic entirely into the Setup() function (although not necessary… just saying).
Boot, try one connection for x time, if nothing, try the next method, then the next, etc… then connect to Blynk and start the usual looping run.
@burakdede please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
The original post was about using Ethernet or WiFi, not both at the same time.
I’d guess that the only way to achieve both connections at the same time would be to use both cores of the ESP32 and even then I’m not sure it would be possible.
I may have expressed myself wrongly, sorry, my purpose is not to use both at the same time, but I will add both libraries and run the connection that will work for me, so I can make changes between the connection.