I don't know if this is the correct place to ask, but i have an issue and i hope to get some help. I have two ESPs which i use in my project, one is configured to be AP and Server, and the other one is client. The server starts with ip: 192.168.4.1 and deliver a webpage, tested with my smartphone, but when i try to make a request from the other esp, when connecting to host fails. I do following steps:
- connecting to wifi AP - successfully
- preparing data (DHT22)
- creating string and request header
- checking connection to host
IPAddress host(192,168,4,1);
if (client.connect(host, 80)){
it never gets here
do something ...
}
So from my phone, when i access ip in browser, works fine, here it does not. Any ideeas?
Btw i use two ESP8266-01 with standard firmware, arduino code.