Hi
I'm thinking of all the great things I will do when I can stick my mbed on my ethernet tcp/ip network. All other interfacing has been simple and quick so well done mbed team(s). First of all I'd like to assign my mbed an ip address 192.168.1.147. I am using the EthernetNetIf library and I get compiler errors ""No instance of constructor "IpAddr::IpAddr" matches the argument list (E289)" in file "/main.cpp". Also I'd like to interrogate my mbed and get it to spit out its mac address and its ip address on demand. I also had difficulty importing the EthernetNetIf as a library.........is there another library or way of doing what I need? The EthernetNetIf looks so simple to understand and implement but its frustrating not to be able to do something so basic.
#include "mbed.h"
#include "EthernetNetIf.h"
EthernetNetIf eth(IpAddr(192.168.1.147),IpAddr(255.255.255.0),IpAddr(192.168.1.1),IpAddr(192.168.1.1));
//EthernetNetIf eth();
Serial pc(USBTX,USBRX);
int main(){
printf("Start\n");
printf("\r\nSetting up...\r\n");
EthernetErr ethErr = eth.setup();
if(ethErr)
{
printf("Error %d in setup.\n",ethErr);
}
printf("\r\nSetup ok\r\n");
}
Hi
I'm thinking of all the great things I will do when I can stick my mbed on my ethernet tcp/ip network. All other interfacing has been simple and quick so well done mbed team(s). First of all I'd like to assign my mbed an ip address 192.168.1.147. I am using the EthernetNetIf library and I get compiler errors ""No instance of constructor "IpAddr::IpAddr" matches the argument list (E289)" in file "/main.cpp". Also I'd like to interrogate my mbed and get it to spit out its mac address and its ip address on demand. I also had difficulty importing the EthernetNetIf as a library.........is there another library or way of doing what I need? The EthernetNetIf looks so simple to understand and implement but its frustrating not to be able to do something so basic.