IW416 RT1060 http request

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IW416 RT1060 http request

614 次查看
BettyCheng
Contributor II

Hi there,

I'm currently working on a project using RT1060B and IW416 (AW-AM510). I've successfully tried out the wifi_cli example project and connected to wifi. However, I don't know how to send http request via the wifi connection. 

Many thanks,

Betty

0 项奖励
回复
5 回复数

569 次查看
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @BettyCheng 

 

In our demo application, we provide ping cmd to access to internet.

ping [-s <packet_size>] [-c <packet_count>] [-W <timeout in sec>] <ipv4/ipv6 address>

 

Best Regards

Shaun

0 项奖励
回复

566 次查看
BettyCheng
Contributor II

I’ve also tried out the ping cmd. However, it only succeeds when l’m pinging the ip address of the WiFi that I’m currently connecting to, and I’m not sure whether it is normal or not. Also, as far as I know, ping only checks for end to end connection, and I thought that it would be impossible to send http request, such as get, post… by the ping cmd. I’m not sure if I’ve considered it correctly. 

Best regards,

Betty

0 项奖励
回复

518 次查看
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @BettyCheng 

 

Could you try ping 8.8.8.8 or 114.114.114.114 to test whether STA access to the internet?

 

Best Regards

Shaun

0 项奖励
回复

580 次查看
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @BettyCheng 

 

Our board works as station, and you connect to another AP. You want to access to internet. Right?

 

Best Regards

Shaun

0 项奖励
回复

576 次查看
BettyCheng
Contributor II

Yes, that’s the case, the board acts as client. Sorry for not specifying in the post.

0 项奖励
回复