Hi.
How to know my IP address assigned by GPRS network after connected through WIP functions?
Please somebody tell me its very urgent.
Thanks
chidu
Hi.
How to know my IP address assigned by GPRS network after connected through WIP functions?
Please somebody tell me its very urgent.
Thanks
chidu
wip_bearerGetOpts
Thanks for reply.
Still i am struggling to use this function.
I am using like this
resultval=wip_bearerGetOpts(b,WIP_BOPT_IP_ADDR,ipaddress,WIP_COPT_END);
Can u give me one example it will be really helpful.
&ipaddress
Thanks Jeroen its working now.
But it giving the value
ipaddress=1924096373
How to convert?
I found it in google
ipaddress=1924096373 in decimal
convert into hex 72 AF 61 75 and reverse the order
75 61 Af 72
ie.
117.97.175.114
Thanks
Try this:
// Variable Declarations
wip_bearer_t GPRS_CommBearer_ID;
u32 LocalIP_TCP;
char LocalIPAddyTCP[20];
char MessageString[100];
// Code Snippet
wip_bearerGetOpts(GPRS_CommBearer_ID, WIP_BOPT_IP_ADDR, &LocalIP_TCP);
wip_inet_ntoa(LocalIP_TCP, LocalIPAddyTCP, sizeof(LocalIPAddyTCP));
sprintf(&MessageString[0], "WIP_BEARER_HANDLER -> GPRS Local IP Address : %s", LocalIPAddyTCP);
TRACE (( 1, &MessageString[0]));
Thanks tomridl
Its more simplest way.
thankyou