You can wire serial tx of one board to the serial rx of the other and vice-versa, and use the Serial api, or do the same using two other digital pins and use the NewSoftSerial library.
You can wire serial tx of one board to the serial rx of the other and vice-versa, and use the Serial api, or do the same using two other digital pins and use the NewSoftSerial library.