-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hi
I’ve tried this code inside loop() and it is called very 10s:
if ( tenSecs ) {
FILE* result = client.getURI(“/test/P.php”,get_parms);
if (result!=NULL) {
int returnCode = client.getLastReturnCode();
if (returnCode==200) {
Serial.println(“loop::data uploaded”);
}
else {
Serial.print(“ERROR: Server returned “);
Serial.println(returnCode);
}
client.closeStream(result);
}
else {
Serial.println(“ERROR::failed to connect”);
}
}
Only the first GET works. All others fail – any idea?
Metadata
Metadata
Assignees
Labels
No labels