Error compiling Teensy 3.2 ethernet code


John Scherer
 

In preparation for hi-res encoders, I've thought I'd try compile the ethernet code from the current Master (beta) branch, 1.10b, but I'm getting an error when compiling:
  Arduino: 1.8.9 (Windows 10), TD: 1.48-beta1, Board: "Teensy 4.0, Serial, Faster, US English"

In file included from C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\MountStatus.h:3:0,

                 from C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\Encoders.h:4,

                 from C:\Users\john\Documents\Arduino\OnStep\Master (beta)\max\OnStep\addons\Ethernet\Ethernet.ino:85:

Accessories.h: In function 'bool command(const char*, char*)':
Accessories.h:120: error: too many arguments to function 'boolean processCommand(const char*, char*, long int)'
   bool success = processCommand(command,response,webTimeout,false);

                                                                  ^

C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\Accessories.h:22:9: note: declared here

 boolean processCommand(const char cmd[], char response[], long timeOutMs) {

         ^

Accessories.h: In function 'bool commandBlind(const char*)':
Accessories.h:127: error: too many arguments to function 'boolean processCommand(const char*, char*, long int)'
   return processCommand(command,response,webTimeout,false);

                                                          ^

C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\Accessories.h:22:9: note: declared here

 boolean processCommand(const char cmd[], char response[], long timeOutMs) {

         ^

Accessories.h: In function 'bool commandBool(const char*)':
Accessories.h:132: error: too many arguments to function 'boolean processCommand(const char*, char*, long int)'
   bool success = processCommand(command,response,webTimeout,false);

                                                                  ^

C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\Accessories.h:22:9: note: declared here

 boolean processCommand(const char cmd[], char response[], long timeOutMs) {
         ^
Accessories.h: In function 'char* commandString(const char*)':
Accessories.h:141: error: too many arguments to function 'boolean processCommand(const char*, char*, long int)'
   bool success = processCommand(command,response,webTimeout,false);

C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\Accessories.h:22:9: note: declared here

 boolean processCommand(const char cmd[], char response[], long timeOutMs) {

         ^

Ethernet: In function 'void logCommandErrors(char*, char*)':
Ethernet:284: error: too many arguments to function 'boolean processCommand(const char*, char*, long int)'
   processCommand(cmd,result,cmdTimeout,true);
                                            ^
In file included from C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\MountStatus.h:3:0,

                 from C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\Encoders.h:4,

                 from C:\Users\john\Documents\Arduino\OnStep\Master (beta)\max\OnStep\addons\Ethernet\Ethernet.ino:85:

C:\Users\john\AppData\Local\Temp\arduino_build_658080\sketch\Accessories.h:22:9: note: declared here

 boolean processCommand(const char cmd[], char response[], long timeOutMs) {

         ^

Multiple libraries were found for "Ethernet.h"
 Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Ethernet
 Not used: C:\Program Files (x86)\Arduino\libraries\Ethernet
too many arguments to function 'boolean processCommand(const char*, char*, long int)'

The current release version of the ethernet code (1.7c)  compiles without error for teensy 3.2/4.0

Join main@onstep.groups.io to automatically receive all group messages.