GPRSbee Library question

Using a delay:

“readline timed out”

Using no delay:


I get the response I’m looking for.

Code im using:


Anyone knows why I’m not getting the responses I need after a delay?

I’m just getting no responses in general

ATE0
readLine timed out
Sending AT Command, waiting 5.00 seconds for a response

AT+CSCLK=0
readLine timed out
Sending AT Command, waiting 5.00 seconds for a response

AT+CMEE=2
readLine timed out
Sending AT Command, waiting 5.00 seconds for a response

AT+CPIN?
readLine timed out

Perhaps any Ndogo / SIM800 example codes available for me to check if its not a hardware fault?

Edit:

I fixed it by using (gprsbee.sendCommandWaitForOK_P(PSTR(“AT+CPIN?”), 6000) from the library.