skaarj1989 / mWebSockets

WebSockets for microcontrollers
https://skaarj1989.github.io/mWebSockets/autobahn-testsuite/servers/
MIT License
108 stars 23 forks source link

'class net::WebSocketServer' has no member named 'getProtocol' - simple-server.ino not compiling #43

Closed Perfectmistake closed 3 years ago

Perfectmistake commented 3 years ago

This seems to be a similar issue to what has been discussed previously, but currently I am trying to compile simple-server.ino via Arduino IDE v1.8.13. However when I compile, this line gets flagged:

const auto protocol = ws.getProtocol();

The full verbose output is shown below:

Arduino: 1.8.13 (Linux), Board: "Arduino Uno"

/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/arduino-builder -dump-prefs -logger=machine -hardware /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware -tools /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/tools-builder -tools /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -built-in-libraries /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries -libraries /home/tsmart/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10813 -build-path /tmp/arduino_build_49149 -warnings=none -build-cache /tmp/arduino_cache_198035 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -verbose /home/tsmart/Desktop/code/Arduino/mWebSocketServer/mWebSocketServer.ino
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/arduino-builder -compile -logger=machine -hardware /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware -tools /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/tools-builder -tools /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -built-in-libraries /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries -libraries /home/tsmart/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10813 -build-path /tmp/arduino_build_49149 -warnings=none -build-cache /tmp/arduino_cache_198035 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr -verbose /home/tsmart/Desktop/code/Arduino/mWebSocketServer/mWebSocketServer.ino
Using board 'uno' from platform in folder: /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr
Using core 'arduino' from platform in folder: /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr
Detecting libraries used...
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard /tmp/arduino_build_49149/sketch/mWebSocketServer.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for WebSocketServer.h: [mWebSockets@1.4.0]
ResolveLibrary(WebSocketServer.h)
  -> candidates: [mWebSockets@1.4.0]
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src /tmp/arduino_build_49149/sketch/mWebSocketServer.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Ethernet.h: [UIPEthernet@2.0.10 Ethernet@2.0.0]
ResolveLibrary(Ethernet.h)
  -> candidates: [UIPEthernet@2.0.10 Ethernet@2.0.0]
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /tmp/arduino_build_49149/sketch/mWebSocketServer.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/CryptoLegacy/BlockCipher.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/CryptoLegacy/Cipher.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/CryptoLegacy/Crypto.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/CryptoLegacy/Hash.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/CryptoLegacy/SHA1.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/WebSocket.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/WebSocketClient.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/WebSocketServer.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/base64/Base64.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Arduino/libraries/mWebSockets/src/utility.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/Dhcp.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/Dhcp.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/Dns.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/Ethernet.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/EthernetClient.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/EthernetServer.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/EthernetUdp.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/socket.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src/utility/w5100.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /tmp/arduino_build_49149/sketch/mWebSocketServer.ino.cpp -o /tmp/arduino_build_49149/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_49149/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/cores/arduino -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/variants/standard -I/home/tsmart/Arduino/libraries/mWebSockets/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet/src -I/home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src /tmp/arduino_build_49149/sketch/mWebSocketServer.ino.cpp -o /tmp/arduino_build_49149/sketch/mWebSocketServer.ino.cpp.o
/home/tsmart/Desktop/code/Arduino/mWebSocketServer/mWebSocketServer.ino: In lambda function:
mWebSocketServer:61:30: error: 'class net::WebSocket' has no member named 'getProtocol'
     const auto protocol = ws.getProtocol();
                              ^~~~~~~~~~~
Multiple libraries were found for "Ethernet.h"
 Used: /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet
 Not used: /home/tsmart/Arduino/libraries/UIPEthernet
Using library mWebSockets at version 1.4.0 in folder: /home/tsmart/Arduino/libraries/mWebSockets 
Using library Ethernet at version 2.0.0 in folder: /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/libraries/Ethernet 
Using library SPI at version 1.0 in folder: /home/tsmart/Desktop/code/Arduino/arduino-1.8.13/hardware/arduino/avr/libraries/SPI 
exit status 1
'class net::WebSocket' has no member named 'getProtocol'

I wish to upload this sketch to an Arduino Uno (ATmega328) with a W5500 Ethernet Shield. How do I fix this issue? Thanks in advance.

skaarj1989 commented 3 years ago

@Perfectmistake It's a preview feature, use master branch instead of 1.4.0

Perfectmistake commented 3 years ago

Thank you very much!