An important note at the beginning!
The ArduiTouch Smarthome Central works only with the ESP32 stable. It was shown that due to the significantly lower RAM of the ESP8266, stable operation is not possible. I have therefore removed the version for the ESP8266 from the repository. The current version of the ATSmartHome library can no longer be compiled with the sketch for ESP8266!
This time we will expand the headquarters so that it can connect to the local WLAN. Since ESP-Now is also to be used, there is an important restriction. The WLAN router used must use channel 1, otherwise the ESP32 cannot establish a connection!
I have added a new setup form. The new form is opened when you click on the upper green bar.
With the checkbox you can choose whether you want to have a connection to the WLAN or not. However, there is no time display without a WLAN connection.
If you click on the input field for network you get a list of all accessible WLAN networks. Attention, since a network scan is carried out, it may take a little while. The desired network can then simply be selected from the list.
In the next input field you have to enter the WPA2 password for this network.
Then the NTP server is specified. This can be the URL of any accessible NTP server.
The last entry defines the interval between two updates of the data display in the web server.
After the data has been saved, the first results page should be displayed again. The date and time should now be displayed in the upper bar.
If our SmartHome center is connected to the WLAN, a web server should also be running that uses the URL http://smart.homecan be reached from the local WLAN. The current version of the web server provides the same display as the ArduiTouch. The width of the display is automatically adjusted for smartphones or tablets.
In later versions, the result display becomes interactive, i.e. switches can be operated and the configuration changed.
The current library and the new version of the sample sketch can be loaded from Git-Hub. ATSmartHome
Here is a list with links to all previous parts:
Have fun :)