Hello,
I have an Arduino based weatherstation. It sends data through an Arduino GSM shield 2 to a database.
Now is my problem that when the arduino loses connection to the internet( i think ) it stops working. I tried to implement a reconnect function but that doesn't help too. i use an arduino mega.
the time when it stops sending data is completely random.
i tried modifying the gsm library as suggested in this post: Connecting to GSM/GPRS unstable, eventually hangs - Arduino GSM Shield - Arduino Forum
but that didnt help either.
Code: ( i uploaded it to pastebin, because i exceeded the maximum limit of characters otherwise).