Hi ,
I want to connect to gprs and establish socket connection with server and then send and receive data.
For this, I have 1st established connection using commands as below
cm radio
cm data
(if apn not set) cm data apn ‘apn name’
(if not connected ) cm data connect &
here it is showing connected using interface ‘rmnet0’
In project, I have used again data connection functions and then added socket code for connection to server and send data.
I have used following functions:
le_data_ConnectService
le_data_AddConnectionStateHandler
le_data_Request
after these three connection functions, I am starting socket code.
while running application, it takes much time to create socket and execution of code.
My question is that,
my code flow is correct or not and if I doing wrong then what is correct flow to connect and send and receive data ?