IoT Server not communicate with ESP8266

8 years 10 months ago #1702 by lincikg
Hello
I playing with "DS18B20_temperature_sensor.ino" sample, and I do not understand what's wrong:
then my node starts in serial port I see next:
AP.
WiFi connected
192.168.20.100
Temperature: 23.56
connection failed
Connecting to AP...
WiFi connected
192.168.20.100
connection failed
...............
192.168.20.100 is node ip, usig port 80, IoT server ip 192.168.20.253
I do not understand what's wrong in line

while(!client.connect(EIOT_IP_ADDRESS, EIOT_PORT)) {
Serial.println("connection failed");
wifiConnect();
}

of sendTeperature() funtion
It seems that the server is not responding, Why??? (#define EIOT_IP_ADDRESS "192.168.20.253" #define EIOT_PORT 80)
Using EasyIoT v8.0 for Windows, I tried to open port 80 on Windows, but still the same....
Please help...

Please Log in or Create an account to join the conversation.

8 years 10 months ago #1707 by EasyIoT

lincikg wrote: Hello
I playing with "DS18B20_temperature_sensor.ino" sample, and I do not understand what's wrong:
then my node starts in serial port I see next:
AP.
WiFi connected
192.168.20.100
Temperature: 23.56
connection failed
Connecting to AP...
WiFi connected
192.168.20.100
connection failed
...............
192.168.20.100 is node ip, usig port 80, IoT server ip 192.168.20.253
I do not understand what's wrong in line

while(!client.connect(EIOT_IP_ADDRESS, EIOT_PORT)) {
Serial.println("connection failed");
wifiConnect();
}

of sendTeperature() funtion
It seems that the server is not responding, Why??? (#define EIOT_IP_ADDRESS "192.168.20.253" #define EIOT_PORT 80)
Using EasyIoT v8.0 for Windows, I tried to open port 80 on Windows, but still the same....
Please help...


Do you have access to port 80 outside of your machine? It looks like firewall is blocking access to port 80.

Please Log in or Create an account to join the conversation.

8 years 1 month ago #3131 by Adamyno
When I turned off Windows Firewall, it works :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.417 seconds

Forum latest

  • No posts to display.