Skip to content

W5500 and stm32 connection circuit_[STM32+W5500] 22, W5500 failed to connect to an external server,

W5500 and stm32 connection circuit_[STM32+W5500] 22, W5500 failed to connect to an external server, such as ONENET

chen

Published March 03, 2023

Original author: 理性教会 · ChinaOriginal source (new tab)

W5500 and stm32 connection circuit_[STM32+W5500] 22, W5500 failed to connect to an external server,

Project description

1,W5500连接外部服务器ONENET失败,主要是IP地址错误,推荐使用IP 183.230.40.34 ,端口80

42b60d033cae5ae5d5266d7b09e0ca11.png

2,在ONENET官网上面,可以看到服务器的IP地址为      ONENET

HTTP服务器地址域名为:jjfarfapi.heclouds.com 端口号为80,

jjfarfapi.heclouds.com >> 183.230.40.34

c603d3bbcd6b29d52daa00791cd0560f.png

dd475b41827c621dcc6f50a2a9a64283.png

65a346710b18ce9fc1cc5f44e6c28f5e.png

2c6407af20f39382b028dc772e71c016.png

3, 与平台HTTP服务器建立HTTP连接,服务器URL:api.heclouds.com 端口号:80

api.heclouds.com >> 183.230.40.33

0c79f218e31e6801bf0f457d0728bb47.png

4,实际使用情况是这样的,

当ONENET的服务器IP地址为183.230.40.33 时候,HOST的URL为:strcat(pkt, "Host:jjfarfapi.heclouds.comrn");

9f100f47019c39f4a5d0315f8c86dea5.png

b71bc29263fbbf98df95dc513079a506.png

当ONENET的服务器IP地址为183.230.40.34 时候,HOST的URL为:strcat(pkt, "Host:api.heclouds.comrn");

Comments

Similar projects you might like

Comments