Arduino_ConnectionHandler icon indicating copy to clipboard operation
Arduino_ConnectionHandler copied to clipboard

Support for Ethernet client

Open gannaramu opened this issue 3 years ago • 3 comments

is there a possibility that we have an ethernet connection handler? I am working on a project that uses teensy4 and Wiz850 Ethernet module

gannaramu avatar Oct 20 '21 00:10 gannaramu

Hi @gannaramu. There is a draft proposal for adding such a capability here: https://github.com/arduino-libraries/Arduino_ConnectionHandler/pull/41

per1234 avatar Oct 20 '21 01:10 per1234

@per1234 i tried that branch but still no luck. having compiler issues on the Teensy4.0:

In file included from lib\ArduinoBearSSL\src\bearssl\x509_minimal.c:203:0:
C:\Users\ganna\.platformio\packages\framework-arduinoteensy\libraries\Time/time.h:1:2: warning: #warning "Please include TimeLib.h, not Time.h.  Future versions will remove Time.h" [-Wcpp]
 #warning "Please include TimeLib.h, not Time.h.  Future versions will remove Time.h"
  ^
lib\ArduinoBearSSL\src\bearssl\x509_minimal.c: In function 'br_x509_minimal_run':
lib\ArduinoBearSSL\src\bearssl\x509_minimal.c:1403:3: error: unknown type name 'time_t'
   time_t x = time(NULL);
   ^
lib\ArduinoBearSSL\src\bearssl\x509_minimal.c:1403:14: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
   time_t x = time(NULL);

Any idea on what could the possible reason?

gannaramu avatar Oct 20 '21 20:10 gannaramu

I guess the above issue was not related to the Arduino Connection handler itself. I was able to fix that issue by replacing time_t with unsigned long

gannaramu avatar Oct 21 '21 22:10 gannaramu