Hello,
I’m using a BufferedSerial interface to comunicate with a modem via AT commands, the response time of the modem is highly variable (from ms to minutes depending on the command). Right now to wait for a response I’m using ThisThread::sleep_for() with a time delay manually adjusted. This approach has worked more or less so far but it’s not consistent nor optimal.
Another way I thought this could be solved is with the use of flags, I can wait for a flag to be set from the interrupt generated by the serial interface using ThisThread::flags_wait_any().
The problem I have is that I can’t find a way to generate an IRQ using BufferedSerial…
Best regards,
Lalo