Oh, thank You for the answer.
Simply changed code to
if (millis() > timer) {
timer = millis() + 60000;
sprintf(buffer, "&Status=OK&V1=%d&V2=%d&Vall=%d", V1, V2, Vall);
ether.browseUrl(PSTR("/push_data.php?ID=1&Key=123456"), buffer, website, my_callback);
}
And it works great!
Coul You please help me out with another related thing...
I post this to server i get my_callback full of info that I dont need. But some info would be good to display on my OLED screen.
The function my_callback is there:
// called when the client request is complete
static void my_callback(byte status, word off, word len) {
Ethernet::buffer[off+300] = 0;
Serial.write((const char*) Ethernet::buffer + off);
}
And result is this:
HTTP/1.1 200 OK
Date: Wed, 10 Oct 2012 13:28:13 GMT
Server: Apache
Connection: close
Content-Type: text/html#DEVOK, 16:28:13 #STSET, 16:28:13 #DASET, 16:28:13
All in need is just system messages with time after "#".
How can I trim the result to remove everything else.
Thanks!![]()
ps- thats the last stupid question from me:) I promise:)