Thank you again kavi for your support!
Still no luck sending data. I tried the sketch you sent and printf-debugged to the line the code freezes:
digitalWrite(9, HIGH); // disable nfc shield
digitalWrite(10, LOW); // enable networking
Ethernet.begin(mac, myip);
EthernetUDP udp;
udp.begin(1234);
udp.beginPacket(server, 44789);
udp.write("TESTMSG");
udp.endPacket(); // <-- THIS CALL NEVER RETURNS
udp.stop();
[...]
digitalWrite(10, HIGH); // disable networking
digitalWrite(9, LOW); // enable nfc shield
I’m getting the impression that it is not possible to use ethernet and the shield intermittently. Currently, I blame the Arduino for that, as the pin setting procedures work with the shield (in other words: when commenting out the UDP part the code runs nicely). I’ll check up with the ardu forums and report back for further reference.
Cheers,
o.