In the first one above, longAngle is presumably declared as a long, and write() does not accept it. Clear enough, and you probably don’t need a long to reprisent the angle (0…359 unless you go around many many times).
The second should work, comment in the println there, to prove that code is executing, look at the RX light on Ard.