Search found 1 match
- Thu Feb 09, 2023 11:09 am
- Forum: General discussion
- Topic: Compile Error: multiple definition of `Serial1'
- Replies: 6
- Views: 6018
Re: Compile Error: multiple definition of `Serial1'
This is another correct solution also. To solve your error you don't have to redeclare this "HardwareSerial Serial2(PA3, PA2);" because it has been declared in the header file. Just head straight and use the Serial2. For example the code below to send message using gsm void setup() { Seri...