how do i get Wwan ip in python as variable on transport wr31

I want to send a SMS containing the Wwan IP address.
but the wr31 does not support the digicli module. ( PYTHON )

how do I get a variable setup containing tha wwan ip

somthing like :

import sarcli

destination = ‘555-12345’
message = “pretty please” (“at\mibs=gprs.0.stats.ip”)

def SendSms(destination, message):
cli = sarcli.open()
command = ‘sendsms ’ + destination + ’ "’ + message + '" ’
cli.write(command)
cli.close()
SendSms(destination, message)
print "Sent SMS message: " + message

Hi and welcome to Digi Forum.

You can find some python example for WR31 here: https://github.com/digidotcom/transport_examples/tree/master/WR31

If nothing apply to your case, I would suggest you to open a case sending an email tech.support@digi.com.

Please also review Digi Support level options, in particular for code debugging/writing: https://www.digi.com/support.

Thanks,

Anny
Digi Technical Support Team

Hey! my name is Camila I am looking for a developer and a resource who have extensive experience in Python. The resource will be working on software for a
top essay writing service in UK. I am planning to expand my business and hire a full-time developer. Please Response back if you have the required skills.