I have a SIM7000E hat connected to my Raspberry. I want to connect the Raspberry to the internet using the SIM7000E hat.
I have manged to get everything working and get responses from the modem when i send the AT commands. I am however unable to get a way to resend the at command if the modem does not return an "OK" and/or respond with an error.
The modem returns two strings when i send the the at command like in the example below.

How can i resend the message if "OK" was not returned and/or when i get an error from the modem. it must only look at the "OK: when "AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0" was send.
I hope that makes sense ![]()


