Help to improve this code

hello,

i need help to improve this code, the aplication work correct but sometimes the socket crash and not connect no more to server…

i have a simple timer with a command at+cfun=1 for reset the modem and clean memory but this not sufficient…

this app run in legacy module Wavecom FASTRAK M1306.

apli.c:
chopapp.com/#f49dmeyt

cfg_gprs.c:
chopapp.com/#7kx6azpt

entry_point.c
chopapp.com/#40cgxvue

Hi,

Can you provide the code in some other link or some other form. The
website you have uploaded the code to, is not accessble .