Anyone get static IP assignment working for wifi?

User avatar
fly135
Posts: 55
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Anyone get static IP assignment working for wifi?

Postby fly135 » Tue Apr 17, 2018 6:49 pm

hassan789 wrote:yes, i got it to work.. you need to add this

Code: Select all

  ip_addr_t d;
  d.type = IPADDR_TYPE_V4;
  d.u_addr.ip4.addr = 0x08080808; //8.8.8.8 dns
  dns_setserver(0, &d);


I did that except I put a 1 where you have a 0 in dns_setserver. After seeing your post I search the source and see that I should have put a zero there as well. Thanks!

I thought that the first param was the number of servers you are passing in. But it's the zero based index of the server you are assigning.

John A

Who is online

Users browsing this forum: Bing [Bot] and 4 guests