arduino_new:
you code will work until it doesn't.the object "ip" becomes undefined once you exist the function.
Thanks. Must I understand that it worked by chance and that it may -depending upon the execution time? stop working?
Can you recommend a more robust implementation of this function?