carrascoacd / ArduinoSIM800L

Arduino HTTP & FTP client for SIM800L/SIM800 boards to perform GET and POST requests to a JSON API as well as FTP uploads.
158 stars 58 forks source link

While(1) #21

Closed farsajik closed 5 years ago

farsajik commented 5 years ago

Hi.when sim800l is off arduino freezes when sends data to sim800l.becouse without respond from sim800l it stucks inside while(1) loop.how to solve this problem.how to firstly check is sim800l attached then send data to module.thanks

carrascoacd commented 5 years ago

You can use the method sendATTest()

For example:

if(TRUE == http.sendATTest()){

working

}else{

sim800l dead

}

On Thu 21 Feb 2019, 9:49 a.m. farsajik <notifications@github.com wrote:

Hi.when sim800l is off arduino freezes when sends data to sim800l.becouse without respond from sim800l it stucks inside while(1) loop.how to solve this problem.how to firstly check is sim800l attached then send data to module.thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carrascoacd/ArduinoSIM800L/issues/21, or mute the thread https://github.com/notifications/unsubscribe-auth/AENiuHLo-rwEIzaQBSvYhvEBDrhtTtz-ks5vPl2fgaJpZM4bG7zP .

farsajik commented 5 years ago

thanks