Wait for AT response

But what problem, exactly, do you have :question:

What methods, exactly, have you tried :question:

What response :question:

What event handler :question:

What “main code” :question:

Have you understood the nature of Event-Driven programming?
See: Good paper on Event-Driven Programming (as mentioned earlier).

Again, you haven’t actually stated what problem you’re having - so it’s impossible to give a solution :exclamation: