That's correct sir, this is the code from ChatGpt.
And I am so sorry but I still lacking of knowledge of ESP32 SPI-Bus, but what I get from the code, the ESP32-ENC28J60 as Receiver or Server is that just:
For ENC28J60, I use this library: #include <UIPEthernet.h> and it compilled without hasle.
For this board, inside the code, I don't initialize any pin at all, instead I use this schematic sir:
no "sir" needed. "Sir" is inaprobriate.
A simple "you" is approbiate even if I write some rhetoric questions:
Are you able to click on this link?
are you able to click on this link that is found by duckduck go?
Are you able to click into the example-codes of this github-repository?
There you will find a demo-code expeccially made for the combination of an ESP32 with ENC28J60
The documentation in Github repos is mostly found under read.me
Hello Stefan, so, my end goal is to communicate this esp32 to some industrial machine and medical devices, this machine can only communicate with other machine using an ethernet cable. The machine receive some command from client than return a data. For the first step, I already succeeded in fetching data from the machine using a Laptop using a tera term software and TCP communication protocol.
For the next step to automate it, I just have to develop a program using ESP32. But before I tyr the program to the machine, I need to test it on an ESP32, so ESP32 talk to ESP32 using ethernet cable.