Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By quiet_coder
#63000 Ok, it compiled finally. I had to rewrite the Makefile to use only relative paths on the includes but it finished and then transferred the library over to the Arduino machine. There it compiled and did not complain about missing functions. All that's left is to upload to the chip and test. That'll probalby need to wait a bit but I'll report back when it works.

Thanks again for the pointers!
User avatar
By quiet_coder
#63003 Works great. It picks up the NTP server from the DHCP lease and my test code can use it. I'll be expanding the code to add a few more options. There are several user defined options slots available starting with Option 244. The goal is to use these to pass things like the data logging server to the device at startup instead of hard coding it. That way I can migrate databases from one machine to the other and only need to update the DHCP server configuration to point to the new IP. Passing the NTP server will help, too, for some of my boards that are using a tick counter but no real time clock. I just have to work out the details of time zones and daylight saving.
User avatar
By yo2lio
#69455
quiet_coder wrote:Works great. It picks up the NTP server from the DHCP lease and my test code can use it. I'll be expanding the code to add a few more options. There are several user defined options slots available starting with Option 244. The goal is to use these to pass things like the data logging server to the device at startup instead of hard coding it. That way I can migrate databases from one machine to the other and only need to update the DHCP server configuration to point to the new IP. Passing the NTP server will help, too, for some of my boards that are using a tick counter but no real time clock. I just have to work out the details of time zones and daylight saving.

Hi,

I want to add option 160 in dhcpserver. (Captive Portal option)
I changed the dhcpserver.c file, but now I need to recompile the lwip library.
Can you help me, step by step, to recompile the lwip?

Thank you very much.