Closed JAndrassy closed 7 months ago
Hi @JAndrassy Thanks for the PR, anyway it seems not correct as stated in the Arduino reference: https://www.arduino.cc/reference/en/libraries/ethernet/client.connect/
that documentation is some hallucination. the Ethernet library never did that and no library by Arduino does that. and here WiFi libraries count too.
and all examples show if (client.connected)
my PR to fix the doc is https://github.com/arduino-libraries/Ethernet/pull/240
OK. Thanks for the feedback... let's see if other user will claim for issue with this udate.
All examples have
if (client.coonect(server, port)
, butgetHostName
doesn't return only 1 or 0, soconnect
can't return the return value of getHostName.