Skip to content

Commit 9a40af7

Browse files
manpowreNeradoc
authored andcommitted
Update adafruit_esp32spi.py
1 parent 09036f2 commit 9a40af7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_esp32spi/adafruit_esp32spi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,10 @@ def scan_networks(self):
408408
return APs
409409
return None
410410

411-
def set_ip_config(self, ip, gw, mask="255.255.255.0"):
411+
def set_ip_config(self, new_ip, new_gw, new_mask="255.255.255.0"):
412412
"""Tells the ESP32 to set ip, gateway and network mask b"\xFF" """
413413
resp = self._send_command_get_response(_SET_IP_CONFIG,
414-
params= [b"\x00",self.unpretty_ip(ip),self.unpretty_ip(gw), self.unpretty_ip(mask)],
414+
params= [b"\x00",self.unpretty_ip(new_ip),self.unpretty_ip(new_gw), self.unpretty_ip(new_mask)],
415415
sent_param_len_16=False)
416416
return resp
417417

0 commit comments

Comments
 (0)