[Solved] How to trigger Software Serial port?

Hi friends,

we can catch the events on Serial Ports by
serialEvent1(),
serialEvent2(),
serialEvent3() functions.

Is there any way to trigger Software Serial port events without loop function?

Thanks in advance.

Not as such, no.

However, all the serialEvent does is:

if(Serial.available() > 0) {
  serialEvent();
}

So, you can just add

if (mySerial.availabl() > 0) {
  mySoftwareSerialEvent();
}

to your loop.

Just because serialEvent isn't in your loop, it doesn't mean it's not in "the" loop.

thank you, i knew this but i wanted to be sure.