Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settings, static IP #129

Closed
ghost opened this issue Mar 1, 2017 · 8 comments
Closed

settings, static IP #129

ghost opened this issue Mar 1, 2017 · 8 comments
Labels
enhancement Type - Enhancement that will be worked on

Comments

@ghost
Copy link

ghost commented Mar 1, 2017

Would be nice, to be able to set a static IP address, getting headache figuring it out how to do it in the code.

@arendst
Copy link
Owner

arendst commented Mar 1, 2017

Only DHCP is supported ;-)

@MacWyznawca
Copy link

I use bind IP to MAC in My router DrayTek Vigor or NAS QNAP (with DHCP Server).

@ghost
Copy link
Author

ghost commented Mar 1, 2017

OK, thanks for all the great work anyway :)

if some lost soul would like static IP.
edit: sonoff.ino insert at about row 141
add:
// WiFi Settings
const uint8_t ipadd[4] = {192,168,x,x}; //static ip
const uint8_t ipgat[4] = {192,168,x,x}; //local router gateway ip
const uint8_t ipsub[4] = {255,255,xx,xx}; //subnetmask

then edit support.ino add line at row about 154
WiFi.config(ipadd, ipgat, ipsub); // set static IP

// it works great for me..

@arendst
Copy link
Owner

arendst commented Mar 3, 2017

Thnx for the idea. Will be implemented in next version

@arendst arendst added the enhancement Type - Enhancement that will be worked on label Mar 3, 2017
arendst added a commit that referenced this issue Mar 3, 2017
4.0.0 20170303
* Add define to remove config migration code for versions below 3.0 (See
Wiki-Upgrade-Migration path)
* Free memory by switching from String to char[]
* Raised Sonoff Led PWM frequency from 200Hz to 432Hz in search of
stability (hardware watchdog timeouts) (#122)
* Increase message size and suggested minimum MQTT_MAX_PACKET_SIZE to
512 (#114, #124)
* Remove runtime warning message regarding MQTT_MAX_PACKET_SIZE too
small as it is now moved to compile time (#124)
* Fix possible panics with web console and http commands while UDP
syslog is active (#127)
* Add optional static IP address (#129)
* Add define ENERGY_RESOLUTION in user_config.h to allow user control
over precision (#136)
@arendst arendst closed this as completed Mar 5, 2017
@moonfarms
Copy link

moonfarms commented Aug 10, 2017

Try this google search:
static ip is the bane of all networks
and
if some lost soul would like static IP

@davidelang
Copy link
Collaborator

davidelang commented Aug 11, 2017 via email

@moonfarms
Copy link

@davidelang : " I go with DHCP static
allocations."
That's the right way to do it

@davidelang
Copy link
Collaborator

davidelang commented Aug 11, 2017 via email

curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
4.0.0 20170303
* Add define to remove config migration code for versions below 3.0 (See
Wiki-Upgrade-Migration path)
* Free memory by switching from String to char[]
* Raised Sonoff Led PWM frequency from 200Hz to 432Hz in search of
stability (hardware watchdog timeouts) (arendst#122)
* Increase message size and suggested minimum MQTT_MAX_PACKET_SIZE to
512 (arendst#114, arendst#124)
* Remove runtime warning message regarding MQTT_MAX_PACKET_SIZE too
small as it is now moved to compile time (arendst#124)
* Fix possible panics with web console and http commands while UDP
syslog is active (arendst#127)
* Add optional static IP address (arendst#129)
* Add define ENERGY_RESOLUTION in user_config.h to allow user control
over precision (arendst#136)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on
Projects
None yet
Development

No branches or pull requests

4 participants