HOW TO ADD FIXED IP TO V2 CODE?
Posted:
Wed Aug 10, 2016 12:05 pm
by joeman2116
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
Re: HOW TO ADD FIXED IP TO V2 CODE?
Posted:
Thu Aug 11, 2016 12:59 am
by Oldbod
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.
Re: HOW TO ADD FIXED IP TO V2 CODE?
Posted:
Thu Aug 11, 2016 5:28 am
by Electroguard
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
Re: HOW TO ADD FIXED IP TO V2 CODE?
Posted:
Thu Aug 11, 2016 5:49 pm
by joeman2116
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