static IP addres on ESP8266-12F #5616
Replies: 1 comment
-
|
Posted at 2016-12-05 by Ollie When used as an access point the IP is always 192.168.4.1. You can't change it AFAIK. When used as a station connected to an access point, I've found creating a reserved IP on the router, based on the MAC address, to be convenient. ESP8266 will always be assigned the same IP - efectively 'static' IP when it connects. Posted at 2016-12-05 by ClearMemory041063 Here's another way Using Bonjour to find the IP dynamic address. Posted at 2016-12-05 by @MaBecker hmm, in times of dhcp there is no need for a static ip - or is there something I am missing ? In station mode the ESPs use a host name like ESP_< last three octets of the mac >, so you can use that name to ping or to connect with WEB IDE Attachments: Posted at 2016-12-05 by MSol Thanks to everybody! Let me clarify our problem on the example with one ESP12F. Our device has active Access Point and we need just to set them IP = 192.168.5.1. To be more clear, every other device in our solution should have proprietary IP, for example 192.168.SN.1 (where SN is serial number of the device). How to get it? Posted at 2016-12-05 by MSol
it seems, we are near of what we need..
Posted at 2016-12-05 by @MaBecker I use the ESP in station mode and 192.168.194.0 is my local network use this to get the full mac for ap and station: as @ollie said, in AP mode the ip is always 192.168.4.1 and the SSID is always ESP_< last three octets of the mac > Posted at 2016-12-05 by MSol Thank you, I got it... finally, I have found ESP8266 AT Instruction, where AT+CIPAP – Set IP address of ESP8266 softAP
I will try to set IP address in pure module and after that flash Espruino firmware... Posted at 2016-12-05 by Ollie I don't think that will help you. Your firmware flash of Espruino will likely replace the Expressif AT command set firmware, and even if it didn't, Espruino would not make reference to it. Maybe Espruino could be built to use a different AP IP address? I don't know if possible, but if it is possible, it will be in the espruino source code not the compiled binary. You should ask some questions in the Espruino gitter channel (https://gitter.im/espruino/Espruino) where the folk who know more about the ESP8266 port can often be found. Posted at 2016-12-06 by MSol Thanks, Ollie. I saw gitter channel and spent several hours in there trying to fund something helpful. I will write there my question btw, I have found discussion about Static IP here. Unfortunately, I did not see result. Can your team re-open issue and release draft version? I would like to test it! Posted at 2016-12-06 by Ollie We're not a team as such, just a community who jump in and out as time permits. You're absolutely welcome to ask your question in Gitter - or jump on the Github issue you linked - both are for everyone. I'm sure the people familiar with the C aspects of Espruino and the ESP8266 port in particular (which I am not) will answer your question on current state and any likely future state re static IP addresses. Posted at 2016-12-06 by MSol many thanks to everybody who gave me attention and answered to me! I need to learn technology how to build and flash firmware... Posted at 2016-12-06 by Ollie Great to hear you've found a way forwards. Please share your builds. Posted at 2016-12-08 by Will Would it be useful to set a DHCP hostname instead? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-12-05 by MSol
Hi,
Could you please help us to find the right answer:
// over a weeks and on many forums we still not able to find this solution...
Thank you! Michael
Beta Was this translation helpful? Give feedback.
All reactions