Gainspan wifi and RX-XV WIFLY

What's the difference between those two?
I have an arduino mega 2560 is it compatible?