Go Down

Topic: Do I have to use mySerial? (Read 102 times) previous topic - next topic


Alright, just a quick question, in the following context, do I have to use "mySerial.available" or can it be "portOne.available"

Code: [Select]
if (mySerial.available() > 0) {


Oct 09, 2019, 08:52 pm Last Edit: Oct 09, 2019, 08:54 pm by jremington
Assuming you refer to Software Serial or similar, it does not matter what name you assign to the instantiated object.


That's the code where you are assigning a name to your Software Serial Port:
Code: [Select]
SoftwareSerial mySerial(2, 3);
You can change it to anything and use that later in your code.

Go Up