I am using a TFMini Plus. I have used the manufacturers sample code with an Arduino Uno with no issues. However, when I try and use it with a Mega I get an error when trying to compile the code.
conflicting declaration 'SoftwareSerial Serial1'
As stated in the code. I believe it is because the Mega has multiple serial ports unlike the Uno.
/* For Arduinoboards with multiple serial ports like DUEboard, interpret above two pieces of code and directly use Serial1 serial port*/
[https://github.com/TFmini/TFminiPlus-Arduino/blob/master/Example-ReadData/The%20Examples%20of%20TFmini%20Plus%20on%20Arduino（Ⅰ）.pdf](https://github.com/TFmini/TFminiPlus-Arduino/blob/master/Example-ReadData/The Examples of TFmini Plus on Arduino（Ⅰ）.pdf)
What do I have to change to make the sketch compile?