Dan Kiefer wrote:Now I tried to connect to it from another ESP8266 using the WifiClient example. Here I am stuck. In the example, a sparkfun address is used as the host. If I replace the host address by the IP of my webserver (192.168.4.1), my WifiClient connects to the network, but the connection to the server fails (client.connect("192.168.4.1", 80) == false). My intention was to send the same string to the webserver that is also sent by the browser. Sorry if that sounds silly.
How can I 'customize the script to talk to other http servers' (as it is said in the WifiClient example)? Do I have to change the server part in order that it accepts such requests?
First of all, if your server works from a browser then it works from another ESP, too -- there is no change needed on the server. It's your client-sketch that is wrong, so I do have to ask: are you trying to run your client as an AP or a STA? It obviously can't connect to the server if the client is in a separate WIFI-network! So, make your client connect to the "WifiTest" AP first and see if your sketch works then.
If you are still having trouble then share the client's sketch.