GPy IP Address
-
Dear Pycom,
I am new to GPy and LTE.
Can I ask how to print out the IP address obtained from LTE network service provider?
LTE example works fine for me.
Thanks for your help.
Cheers,
Paul
-
Thanks a lot.
print(lte.send_at_cmd('AT+CGCONTRDP')) works!
It gives
+CGCONTRDP: 1,5,"telstra.internet.xxx.yyy.gprs","10.247.zz.gg.255.255.255.255","","10.4.hh.ii","10.5.jjj.kk","",""
10.247.zz.gg is the local ip address. Sad it is not public ip.
Cheers,
Paul
-
@Gijs said in GPy IP Address:
'AT+CIFSR'
I'm not sure cifsr works on the sequans, maybe try 'AT+CGCONTRDP' to get the local IP
-
Good to hear you're able to connect to LTE without any issues,
You should be able to get the IP address using an AT command like so:lte.send_at_cmd('AT+CIFSR')
After you attached, but before connecting