Have been spending a bit of time on the bench trying to get a connection over UDP rather than serial, but having some snags wondering if anyone can shine some light, I know the UDP can be a bit tricky, but would be great to get it working!
So have got a ECN28J60 Hooked up, ethernet cable connected and link lights come on, and have set:
#define EtherNet 1
But cant see to get it to work, not sure if the board is actually running though / think it might be crashing once code is loaded as get a few errors after it compiles which I will post belowâŚ
/Users/darrenjlobb/Desktop/AgOpenGPS-master/ArduinoCode/AutosteerPCBv2/AutosteerPCBv2.ino: In function âvoid setup()â:
/Users/darrenjlobb/Desktop/AgOpenGPS-master/ArduinoCode/AutosteerPCBv2/AutosteerPCBv2.ino:254:33: warning: invalid conversion from âvoid ()(uint16_t, uint8_t, uint16_t, byte*, uint16_t) {aka void ()(unsigned int, unsigned char, unsigned int, unsigned char*, unsigned int)}â to âUdpServerCallback {aka void ()(unsigned int, unsigned char, unsigned int, const char*, unsigned int)}â [-fpermissive]
ether.udpServerListenOnPort(&udpSteerRecv, 8888);
^~~~~~~~~~~~~
In file included from /Users/darrenjlobb/Desktop/AgOpenGPS-master/ArduinoCode/AutosteerPCBv2/AutosteerPCBv2.ino:86:0:
sketch/EtherCard_AOG.h:489:17: note: initializing argument 1 of âstatic void EtherCard::udpServerListenOnPort(UdpServerCallback, uint16_t)â
static void udpServerListenOnPort(UdpServerCallback callback, uint16_t port);
^~~~~~~~~~~~~~~~~~~~~
/Users/darrenjlobb/Desktop/AgOpenGPS-master/ArduinoCode/AutosteerPCBv2/AutosteerPCBv2.ino: In function âvoid loop()â:
/Users/darrenjlobb/Desktop/AgOpenGPS-master/ArduinoCode/AutosteerPCBv2/AutosteerPCBv2.ino:484:83: warning: invalid conversion from âbyte* {aka unsigned char*}â to âconst char*â [-fpermissive]
ether.sendUdp(toSend, sizeof(toSend), portMy, ipDestination, portDestination);
^
In file included from /Users/darrenjlobb/Desktop/AgOpenGPS-master/ArduinoCode/AutosteerPCBv2/AutosteerPCBv2.ino:86:0:
sketch/EtherCard_AOG.h:445:17: note: initializing argument 1 of âstatic void EtherCard::sendUdp(const char*, uint8_t, uint16_t, const uint8_t*, uint16_t)â
static void sendUdp (const char *data, uint8_t len, uint16_t sport,
Have i missed something / made a silly fail? Using latest download from Github.