GithubHelp home page GithubHelp logo

arhi / ethernetspi2 Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 14.0 44 KB

Allow ESP32-CAM module to talk to W5500 Ethernet module trough HSPI as SPI (VSPI) pins are used to connect the camera module

C++ 94.90% C 5.10%

ethernetspi2's People

Contributors

arhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ethernetspi2's Issues

compilation error report

Compilation error: cannot declare variable ´server´ to be of abstract type´EthernetServer´

What could be the reason?

[SOLVED] ISSUE: Compilation error: cannot declare variable ´server´ to be of abstract type´EthernetServer´

problem is solved here: adafruit/Ethernet2#32

nnn112358 commented adafruit/Ethernet2#32 (comment)
There is no problem with this.

If new arduino esp32 or make error, need go to c:\Program Files (x86)\Arduino\hardware\espressif\arduino-esp32\cores\esp32\Server.h
Change virtual void begin(uint16_t port = 0) = 0; to virtual void begin() = 0;

https://github.com/m5stack/M5Stack/blob/master/examples/Modules/W5500/WebServer/WebServer.ino

For me the location of this file was in:
C:\Users{your_user}\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\Server.h

reopened arduino after opening the file and all was good, hope this helps mate :)

How to compile

Hi,

I've got an error while compiling in Arduino IDE and / or Plattform.io.
Can you give me a hint how to use the code?

Is the SPI Version solved with new Arduino Ethernet approach?

BR

Compile Error "cannot declare variable 'server' to be of abstract type 'EthernetServer'"

While compiling ESP32EthCamera.ino I've got the following error:

ESP32EthCamera:79:16: error: cannot declare variable 'server' to be of abstract type 'EthernetServer'
 EthernetServer server(80);
                ^
In file included from D:\ESP32EthCamera\ESP32EthCamera.ino:37:0:
D:\ESP32EthCamera\EthernetSPI2.h:253:7: note:   because the following virtual functions are pure within 'EthernetServer':
 class EthernetServer : public Server {
       ^
In file included from C:\Users\uid\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:152:0,
                 from C:\Users\uid\AppData\Local\Temp\arduino_build_661563\sketch\ESP32EthCamera.ino.cpp:1:
C:\Users\uid\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Server.h:28:18: note: 	virtual void Server::begin(uint16_t)
     virtual void begin(uint16_t port=0) =0;
                  ^

cannot declare variable 'server' to be of abstract type 'EthernetServer'

Any idea what's wrong?

Errors

Errors:

c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o:(.literal._ZN13EthernetClass11socketBeginEht+0xc): undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function W5500Class::read(unsigned short)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:143: undefined reference to W5500Class::read(unsigned short, unsigned char*, unsigned short)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function W5500Class::write(unsigned short, unsigned char)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:138: undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function W5500Class::writeSn(unsigned char, unsigned short, unsigned char*, unsigned short)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:224: undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function write_data(unsigned char, unsigned short, unsigned char const*, unsigned short)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:410: undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:413: undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function EthernetClass::socketBegin(unsigned char, unsigned short)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:124: undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:113: undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function EthernetClass::socketBeginMulticast(unsigned char, IPAddress, unsigned short)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:196: undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:186: undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function EthernetClass::socketClose(unsigned char)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:213: undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o:C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:230: more undefined references to W5500Class::execCmdSn(unsigned char, SockCMD)' follow c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function EthernetClass::socketRecv(unsigned char, unsigned char*, short)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:292: undefined reference to W5500Class::read(unsigned short, unsigned char*, unsigned short)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function read_data':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:297: undefined reference to W5500Class::read(unsigned short, unsigned char*, unsigned short)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function W5500Class::writeSnRX_RD(unsigned char, unsigned short)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:273: undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function EthernetClass::socketPeek(unsigned char)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:371: undefined reference to W5500Class::read(unsigned short, unsigned char*, unsigned short)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function EthernetClass::socketSend(unsigned char, unsigned char const*, unsigned short)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:448: undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\socket.cpp.o: in function EthernetClass::socketSendUDP(unsigned char)':
C:\Users\Wawan\Documents\Arduino\sketch_dec1a/socket.cpp:515: undefined reference to W5500Class::execCmdSn(unsigned char, SockCMD)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\EthernetClient.cpp.o:(.literal._ZN10W5500Class6readSnEhtPht[_ZN10W5500Class6readSnEhtPht]+0x0): undefined reference to W5500Class::CH_BASE_MSB'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\EthernetClient.cpp.o: in function W5500Class::readSn(unsigned char, unsigned short, unsigned char*, unsigned short)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:221: undefined reference to W5500Class::read(unsigned short, unsigned char*, unsigned short)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o:(.literal._ZN10W5500Class8writeGAREPKh[_ZN10W5500Class8writeGAREPKh]+0x0): undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o:(.literal._ZN13EthernetClass5beginEPhmm+0x24): undefined reference to W5500Class::init()'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o:(.literal._ZN13EthernetClass4initEh+0x0): undefined reference to W5500Class::ss_pin' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o:(.literal._ZN13EthernetClass10linkStatusEv+0x0): undefined reference to W5500Class::getLinkStatus()'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o:(.literal._ZN13EthernetClass14hardwareStatusEv+0x0): undefined reference to W5500Class::chip' c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o:(.literal._ZN13EthernetClass7localIPEv+0x0): undefined reference to W5500Class::read(unsigned short, unsigned char*, unsigned short)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o: in function W5500Class::writeGAR(unsigned char const*)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:177: undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o: in function W5500Class::writeSUBR(unsigned char const*)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:178: undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o: in function W5500Class::writeSHAR(unsigned char const*)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:179: undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o: in function W5500Class::writeSIPR(unsigned char const*)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:180: undefined reference to W5500Class::write(unsigned short, unsigned char const*, unsigned short)'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o: in function EthernetClass::begin(unsigned char*, unsigned long, unsigned long)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a/Ethernet.cpp:35: undefined reference to W5500Class::init()'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o: in function EthernetClass::linkStatus()': C:\Users\Wawan\Documents\Arduino\sketch_dec1a/Ethernet.cpp:106: undefined reference to W5500Class::getLinkStatus()'
c:/users/wawan/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Wawan\AppData\Local\Temp\arduino\sketches\F8CFC03ECD6ABAEDDC509508696C06F6\sketch\Ethernet.cpp.o: in function W5500Class::readSIPR(unsigned char*)': C:\Users\Wawan\Documents\Arduino\sketch_dec1a\utility/w5500.h:180: undefined reference to W5500Class::read(unsigned short, unsigned char*, unsigned short)'
collect2.exe: error: ld returned 1 exit status

exit status 1

cant compile (help me)

D:\Project\Camera\ESP32EthCamera\ESP32EthCamera.ino:79:16: error: cannot declare variable 'server' to be of abstract type 'EthernetServer'
EthernetServer server(80);
^
In file included from D:\Project\Camera\ESP32EthCamera\ESP32EthCamera.ino:37:0:
c:\Users\kresi\OneDrive\Dokumenti\Arduino\libraries\EthernetSPI2\src/EthernetSPI2.h:253:7: note: because the following virtual functions are pure within 'EthernetServer':
class EthernetServer : public Server {
^
In file included from C:\Users\kresi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:152:0,
from C:\Users\kresi\AppData\Local\Temp\arduino\sketches\FE5914CB5C47106DDEA3D21F90EA3FDB\sketch\ESP32EthCamera.ino.cpp:1:
C:\Users\kresi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Server.h:28:18: note: virtual void Server::begin(uint16_t)
virtual void begin(uint16_t port=0) =0;
^

exit status 1

Compilation error: cannot declare variable 'server' to be of abstract type 'EthernetServer'

Mac adress

Bonjour, j'aurais besoin d'aide concernant ce sketch notamment concernant cette partie :

// Enter a MAC address and IP address for your controller below. // The IP address will be dependent on your local network: byte mac[] = { 0x02, 0xAB, 0xCD, 0xEF, 0x00, 0x01 }; //IPAddress ip(192, 168, 89, 11); IPAddress ip(192, 168, 89, 11);

je ne sais quoi mettre dans ces lignes, le MAC adress correspond il à l'adresse mac du module W5500 ou bien celle de ma sortie ethernet du pc ? s'il s'agit du module W5500 comment la trouver ?
pour ip adress peut on mettre une adresse quelconque non déjà utilisée ?

merci pour votre aide et réponses, bien cordialement Philippe

DONT work

Im use all original manual from you. And DONT WORKING.
What is wrong dont communicate with W550 ???

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.