JiriBilek / WiFiSpi

SPI library for Arduino AVR and STM32F1 to connect to ESP8266
GNU Lesser General Public License v3.0
62 stars 13 forks source link

Add .remoteIP() function to WiFiSpiClient #19

Closed fredlcore closed 3 years ago

fredlcore commented 3 years ago

Would it be possible to add the remoteIP() function that is available for WiFiSpiUDP already, also to WiFiSpiClient? It used to be the same case with the Ethernet Library until version 2.0 that remoteIP was only implemented for UDP, but nowadays in version 2.0, it is available also for generic clients. This would make it easier to port code to your library. Thanks!

fredlcore commented 3 years ago

I got it working, sorry for not making a proper pull request, but it's just two small changes in the two files I have attached, feel free to use them if you like! WiFiSpiClient.zip