Static IP address,subnet,gateway in code (request)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Backbone
Normal user
Posts: 106
Joined: 06 Oct 2015, 22:12

Static IP address,subnet,gateway in code (request)

#1 Post by Backbone » 06 Dec 2015, 08:25

Is it an option to make the code configurable so in the sketch we can assign IP address,gateway and subnetmask at first upload?
Why?
Saves time for searching the DHCP address or first AP search trouble.
You need a IP scanner anyway to find the DHCP address if you do not use the first 30 seconds AP route.
So start IP scanner and check free addresses range.
Assign the free value in the sketch.
Upload
set browser to ip address >> done

Paco

asm7100
Normal user
Posts: 96
Joined: 13 Sep 2015, 21:45
Location: Denmark

Re: Static IP address,subnet,gateway in code (request)

#2 Post by asm7100 » 06 Dec 2015, 08:47

Like that to, I all ways scan the code,and put it in my self before upload.
5xESP-01 - 3xESP-12 - 2xESP-12E 3xRPIb+ - 1xBPIm1 - 3xACTi DOME - 7xACTi Indoor cam. Lot off cisco equ.

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: Static IP address,subnet,gateway in code (request)

#3 Post by NietGiftig » 06 Dec 2015, 09:11

Backbone wrote:Ican assign IP address,gateway and subnetmask at first upload?
+1 from me
If ip adress is o in sketch, then do it the current way

rtenklooster
Normal user
Posts: 320
Joined: 15 Apr 2015, 14:17

Re: Static IP address,subnet,gateway in code (request)

#4 Post by rtenklooster » 06 Dec 2015, 10:33

Backbone wrote:Is it an option to make the code configurable so in the sketch we can assign IP address,gateway and subnetmask at first upload?
Why?
Besides the fact that it could be implemented for the reasons you're suggesting, i wonder why you should set static ip addresses in your device.
I kinda like managing ip-adresses from 1 central place: my router. My DHCP server is setup to lease in the range 100-200
The range 1-40 is reserved for my esp modules: first time i let them connect with just a dhcp release, this way i see their mac address in the router overview, next thing is assigning a reservation and adding a description.

this way you can see in one overview what esp devices have witch ip address.
Schermafbeelding 2015-12-06 om 10.31.58.png
Schermafbeelding 2015-12-06 om 10.31.58.png (30.89 KiB) Viewed 4418 times
Just a suggestion sharing my best practice :)
Richard - Groningen (NL) - Image

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 126 guests