General area when it fits no where else

Moderator: Mmiscool

User avatar
By joeman2116
#52651 In ver 3, I see in settings that one can fill in the lines and make the esp module use fixed ip, gateway etc.

Anyone know how to add a fixed IP for v2 instead of DHCP?

Thanks
Joe
User avatar
By Oldbod
#52682 Not a direct answer - tbh, the only thing I've done with v2 lately is a bit of perfromance testing - but I have a few devices around my network that I want to have fixed ip addresses. For me, the simplest way was to give them a static dhcp entry. That is, my dhcp server (router in my case) responds to dhcp requests for an ip address from a particular mac with a particular ip address. That way address allocation is all managed from the same place.
User avatar
By joeman2116
#52735
Electroguard wrote:This was from a previous post by forlotto...
connect "networkName" "Password" "172.16.0.35" "172.16.0.1" "255.255.255.0"

which can be found here... http://www.esp8266.com/viewtopic.php?f=40&t=6661


I saw that but thought there was a way to do it in the espbasic and not the default.bas.
Will try that...

Joe