Skip to content

Commit

Permalink
PPP: Add ipconfig pass-through.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Sep 25, 2024
1 parent a5abc5b commit 77a97cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions micropython/modules_py/lte.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ def __init__(self, apn, uart=None, reset_pin=None, netlight_pin=None, netlight_l
def _netlight_irq(self, pin):
self._led.value(pin.value())

def ipconfig(self, *args, **kwargs):
if len(args):
return self._ppp.ipconfig(*args)
else:
return self._ppp.ipconfig(**kwargs)

def iccid(self):
try:
return self._send_at_command("AT+CICCID", 1)
Expand Down

0 comments on commit 77a97cf

Please sign in to comment.