Skip to content
Discussion options

You must be logged in to vote

wifi.ifconfig(('192.168.10.80', '255.255.255.0', '192.168.10.1', '8.8.8.8'))
192.168.10.80 -> client ip address(esp32)
255.255.255.0 -> netmask
192.168.10.1 -> gateway(should be router)
8.8.8.8 -> dns

for client static ip address you have 2 options:

  1. set static address from client side(like what you are doing now)
  2. set dhcp static address from router side(add client mac address(esp32) to router dhcp static lease)

for option 2,you should not use this line:
wifi.ifconfig(('192.168.10.80', '255.255.255.0', '192.168.10.1', '8.8.8.8'))

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@davefes
Comment options

@puppet13th
Comment options

@davefes
Comment options

Answer selected by davefes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants