Ok another dumb question…
I have the G120 board with built in Wifi. But I also want to have the ENC28 plugged in to.
I have read as many of the threads as I have found, and it looks like it shouldn’t be a problem, but I’m hitting a stumbling block right off the bat.
I have tried 2 things. The first thing I tried was just using the designer to attach the ENC to a socket. That worked to a point. But I don’t see how to assign the network stack to the ENC when done this way… For example, it would detect that the network cable had been unplugged, But it would not change the IP address. I “assumed” this was because I had not assigned the network stack to the ethernet adapter. But the “AssignNetworkingStackTo” seems to require the premium libs.
So then I read that I needed to use the Premium lib’s to do this. No problem I thought, found the example code on code share. Got everything setup but I ran into a wall understanding the one part of the code that I think that I need to make this work…
static EthernetENC28J60 eth1 = new EthernetENC28J60(add setting here);
Well I just don’t understand enough yet to pull these settings out of my southern orifice.
The “designer” let me plug the ENC into socket 6. But I don’t see a way to instantiate the ENC with “socket 6”. I’m sure it is some magical combination of “G120.pin X” but I have not been able to find that dumbed down to where my humble brain can grasp it.
So I guess I don’t really care which way I get it to work at this point. I just want to see a “Reply From…” when I connect the device to the network.