How to use UDPStream with UIPEthernet? #1061
-
Hi @pschatzmann hope you are ok. I have an application where I need to use Ethernet (UIPEthernet Library, see https://github.com/UIPEthernet/UIPEthernet) instead of WiFi so I headed to your My socket is initialised as Also, do you plan to add support for Ethernet shields in the future? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I was lazy when I implemented that class. Can you double check if it would work if I change it to the following more generic implementation: It should work to pass a EthernetUDP object in the constructor... |
Beta Was this translation helpful? Give feedback.
-
Did you have the chance to check if the proposed changes are working ? |
Beta Was this translation helpful? Give feedback.
-
Hi @pschatzmann just tested the updated and works great. I only needed to add a method
to pass the UDP stream after the class is created. Can you include this method as well? Thanks and congrats again for such an incredible library! |
Beta Was this translation helpful? Give feedback.
-
I decided to rename the method void setUDP(UDP &udp) |
Beta Was this translation helpful? Give feedback.
I was lazy when I implemented that class. Can you double check if it would work if I change it to the following more generic implementation:
It should work to pass a EthernetUDP object in the constructor...