sending serial.read() via UDP

This portion of code works fine

It won't even compile. So, it's horse-hockey to talk about it working.