I created a simple webserver (AP mode) which allows me to switch an LED and to read temperature. It works fine when I connect to it from a browser.
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?
Thanks for any help!
Regards,
Dan