Sapient Hetero

Results 46 comments of Sapient Hetero

> Are you sure about that? The code is: > > ```c > #if defined(RAMEND) && defined(RAMSTART) && ((RAMEND - RAMSTART) #define MAX_SOCK_NUM 4 > #else > #define MAX_SOCK_NUM 8...

Perhaps detecting the board type directly instead of inferring it is a better answer. #if defined(TEENSYDUINO) // --------------- Teensy ----------------- #if defined(__AVR_ATmega32U4__) #define BOARD "Teensy 2.0" #elif defined(__AVR_AT90USB1286__) #define BOARD...

Have you tried EthernetClass::socketClose() or EthernetClass::socketDisconnect()? Both are in socket.cpp. socketCDisconnect() closes the socket by sending the TCP peer a FIN packet and waiting for it to respond with an...

Interesting. When I first built for my W5500-based shield with this library, I got 4 sockets instead of the 8 it supports. I ended up hard-coding the number in Ethernet.h...

In my experience, when my Arduino "freezes" it's "gone to Coventry", by which I mean the default interrupt handler, because a bug in my code has stomped something on the...

That check for !W5100.SnCR() is waiting for the command register to be zeroed, which means the 5100 has started processing it. It's not your problem [you're mixing it up with...

I'm away from my office and working from memory. I meant readSnCR(s). On Fri, Jan 18, 2019, 7:09 PM fredlcore wrote: > Sorry, I'm confused, the function I'm talking about...

Just add a delay between reads of SnCR On Fri, Jan 18, 2019, 7:09 PM fredlcore wrote: > Sorry, I'm confused, the function I'm talking about is this: > void...

Here you go: void W5100Class::execCmdSn(SOCKET s, SockCMD _cmd) { // Send command to socket writeSnCR(s, _cmd); // Wait for command to complete //while (readSnCR(s)) ; do { delayMicroseconds(100); } while...

Yeah, that puzzled me too when I first looked for it. Someone went far out of their way to write difficult-to-read code. readSnCR is a macro invocation. The macro is...