So, how would it be possible to achieve the same result with UDP ie redirect a UDP packet to alternative hardware destinations (eg Udp_wifi , and UDP_ethernet) ? Without writing duplicate functions that is...
What I am trying to do is to re-direct a packet to one of two alternative hardware modules (eg wifi and ethernet) without having to write a separate function for each one.
Problem solved.
Just to close this issue in case someone else reads this in the future:
There was effectively incorrect instantiation of the UDP library (misplaced Ifdef statement) which however resulted in a misleading error message from the compiler.
The most helpful posting would be to post the complete working code.
The arduino-forum is a volunteer community project where the community should be able to participate on solutions.
The complete code is a total of 10 tabs on arduino IDE resulting in about 80kb of flash memory of the 1284p.
What I can do is provide a simple equivalent sketch demonstrating the above solution.