Serial.event question with software serial

Quick question guys... I have a attiny85 project that I am using software serial with. My question is if I am sending a message via software serial, but waiting for a specific message back from the device before I send the next message etc, etc, etc....

I have not coded anything yet, and this is my second attiny85 project (I mean not having a hardware UART lines)... but was just trying to get some pointers on how to proceed.... from a general concept I wish I could use a serial.event type of command to pull each character out of buffer into a string and check it against my "known reply" that I am looking for. the thing is that I don't think serial.event does not apply to Software Serial.... My concern is I will slow/stop the main loop if i try and check for messages repeatedly...

Soooooo, ideas :slight_smile:

Thanks

The examples for SoftwareSerial demonstrate how to use the available() method to detect whether there is input available to be read. That is the only approach possible.

In practice the Serial.event callback that exists for the hardware Serial ports actually does the same thing under the covers, and just adds an extra layer of overhead to the process - in other words, it is a waste of time using Serial.event.