static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
#define BUFFERSIZE 350
const char website[] PROGMEM = "textfiles.com";
uint32_t nextSeq;
static void my_callback (byte status, word off, word len) {
Serial.println(">>>");
}
int16_t chunk_size = BUFFERSIZE-off-1;
int16_t char_written = 0;
int16_t char_in_buf = chunk_size < payloadlength ? chunk_size : payloadlength;
while (char_written < payloadlength) {
char_written += char_in_buf;
}
}
void setup () {
Serial.begin(57600);
Serial.println(F("\n[Persistence+readPacketSlice]"));
Serial.println(F("Failed to access Ethernet controller"));
Serial.println(F("DHCP failed"));
Serial.println("DNS failed");
}
void loop () {
static uint32_t timer = 0;
if (millis() > timer) {
timer = millis() + 7000;
Serial.println();
Serial.print("<<< REQ ");
ether.
browseUrl(PSTR(
"/stories/"),
"cmoutmou.txt", website, my_callback);
}
}