Friedjof/AutomaticChickenFeeder

add hostname (dns) and subnetmask to config.json

Opened this issue · 3 comments

Explanation

So that the configuration interface can also be accessed via a local domain, another configuration hostname and subnetmask could be added to config.json under wifi. This also creates further transparency as to how exactly the configuration interface can be called up.

Todo

For this, the config.json(-template), the ConfigManager (save, load and the wifi type), the main.cpp (wifi config and such), as well as the documentation (README.md) must be adapted.

It is not as simple as we thought. So far I have added the MDNS library and adapted the configuration file accordingly. One could still fix the TODO in the main.cpp so that the ip, subnet and gateway can be set via config.json. But that has not worked for me so far. Unfortunately, I don't know exactly why. More about this in the TODO

And we still have to see how far we have to adapt it for the esp8266. But maybe that's not so important for now. Just develop it for the esp32 first and then see what happens.