Reading IP address of M52259

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reading IP address of M52259

Jump to solution
1,250 Views
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?

Labels (1)
Tags (1)
0 Kudos
1 Solution
375 Views
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

 

View solution in original post

0 Kudos
1 Reply
376 Views
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 Kudos