Reading IP address of M52259

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

Reading IP address of M52259

跳至解决方案
1,264 次查看
rstdaf
Contributor I

Hi,

I'm having trouble about reading IP address of the M52259. I try to use ipcfg_get_ip() function but return value of the function does not make sense. 

Is there any idea about this?

标签 (1)
标记 (1)
0 项奖励
1 解答
389 次查看
PetrM
Senior Contributor I

Have a look at sh_ipconfig.c in shell library, function Shell_ipconfig_status(), to see how to use such functions.

Anyway, did you initialize ethernet interface and got/set some IP address already?

The function doesn't change it's OUT parameters (so they can remain unitialized), if there's no information yet.

 

PetrM

 

在原帖中查看解决方案

0 项奖励
1 回复
390 次查看
PetrM
Senior Contributor I

Have a look at sh_ipconfig.c in shell library, function Shell_ipconfig_status(), to see how to use such functions.

Anyway, did you initialize ethernet interface and got/set some IP address already?

The function doesn't change it's OUT parameters (so they can remain unitialized), if there's no information yet.

 

PetrM

 

0 项奖励