I am trying to establish gprs connection using le_data api
Before this I am checking Sim card inserted is registered or not
For checking SIM state I am using “le_cellnet” service api
While executing program, Network state of cellnet service is changing state i.e
state = 0, Network is off and not registered.
state = 1, Network with emergency call only
if state = 2 , Network is home network etc
Like this I am getting variable state as 2, 0
due to that If state is 2 and Gprs is connected then in very less time state get changed and Gprs get disconnected.
Can any one tell me, Which service api of legato shoulf I use to get proper registration state and connect ineternet.
There are two services one is modem service and another is cellular service, So which service should I use for GPRS Connection and SIM registration checking.