system
February 23, 2015, 10:58am
1
Hello,
I am trying to do something with the GSM modul and using the GSM.h for it.
But sometimes by:
if(gsmAccess.begin(PINNUMBER)==GSM_READY) &
(gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD)==GPRS_READY)
the program just hang-up and doesn't go on. I just can go on if i reset the arduino or load the program again in.
Sometimes it just works without any problems.
Maybe anyone got the same bug and knows what to do/change?
Thank you
system
February 23, 2015, 11:15pm
2
I am trying to do something with the GSM modul
Which GSM module?
& is the bitwise AND operator. You want &&, the logical AND operator.
system
February 24, 2015, 8:21am
3
Thank you Paul, but i already used && just copied wrong.
I searched in the forum and found some persons who have the same problem.
Obviously it's too much work at the same time and so the arduino just hangs-up.
The problem can be solved with a delay between the two requests, which you also can see in this post:
http://forum.arduino.cc/index.php?topic=171435.0
Thank you anyway
Search for other solutions..
Would suggest delay is wrong approach..
Look at synchronisation you neeed to read reply..