I don't even see where NumWiFiTcpSockets is defined at all, in any code.
arm-none-eabi-g++ -D__SAM4E8E__ -DDUET_NG -DDUET_WIFI -D_XOPEN_SOURCE -I"E:\EclipseScratchJunk\CoreNG\cores\arduino" -I"E:\EclipseScratchJunk\CoreNG\libraries\Flash" -I"E:\EclipseScratchJunk\CoreNG\libraries\SharedSpi" -I"E:\EclipseScratchJunk\CoreNG\libraries\Storage" -I"E:\EclipseScratchJunk\CoreNG\libraries\Wire" -I"E:\EclipseScratchJunk\CoreNG\asf" -I"E:\EclipseScratchJunk\CoreNG\asf\common\utils" -I"E:\EclipseScratchJunk\CoreNG\asf\common\services\clock" -I"E:\EclipseScratchJunk\CoreNG\asf\common\services\ioport" -I"E:\EclipseScratchJunk\CoreNG\asf\sam\drivers" -I"E:\EclipseScratchJunk\CoreNG\asf\sam\services\flash_efc" -I"E:\EclipseScratchJunk\CoreNG\asf\sam\utils" -I"E:\EclipseScratchJunk\CoreNG\asf\sam\utils\cmsis\sam4e\include" -I"E:\EclipseScratchJunk\CoreNG\asf\sam\utils\header_files" -I"E:\EclipseScratchJunk\CoreNG\asf\sam\utils\preprocessor" -I"E:\EclipseScratchJunk\CoreNG\asf\thirdparty\CMSIS\Include" -I"E:\EclipseScratchJunk\CoreNG\variants\duetNG" -I"E:\EclipseScratchJunk\RepRapFirmware\src" -I"E:\EclipseScratchJunk\RepRapFirmware\src\DuetNG" -I"E:\EclipseScratchJunk\RepRapFirmware\src\Networking" -I"E:\EclipseScratchJunk\DuetWiFiSocketServer\src\include" -O2 -Wall -c -std=gnu++14 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -nostdlib -Wdouble-promotion -fsingle-precision-constant "-Wa,-ahl=FtpResponder.s" -MMD -MP -MF"src/Networking/FtpResponder.d" -MT"src/Networking/FtpResponder.o" -o "src/Networking/FtpResponder.o" "../src/Networking/FtpResponder.cpp"
'Building file: ../src/Networking/HttpResponder.cpp'
In file included from ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:9:0:
../src/Networking/ESP8266WiFi/WiFiInterface.h:128:22: error: 'NumWiFiTcpSockets' was not declared in this scope
WiFiSocket *sockets[NumWiFiTcpSockets];
^~~~~~~~~~~~~~~~~
I have an unmodified code base of 1.21 other than copying the MessageFormats.h file over from DuetWiFiSocketServer (seems to be necessary).
I have a DuetEthernet board. I have selected the SAM4E8E build for CoreNG, and the Duet2 config for RepRapFirmware. Is that correct?
Since the 085 and DuetM builds work fine, is there just a missing header or definition of NumWiFiTcpSockets that is needed by Duet2?