kopia lustrzana https://github.com/PiInTheSky/lora-gateway
Added CURLOPT_FAILONERROR to capture http errors on habhub these will now be reported via log message at the botom of the window
rodzic
cb9fb1a6e7
commit
45dcff66e3
|
@ -78,6 +78,9 @@ void UploadTelemetryPacket(int Channel)
|
|||
|
||||
// Set the timeout
|
||||
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5);
|
||||
|
||||
// RJH capture http errors and report
|
||||
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
|
||||
|
||||
// Avoid curl library bug that happens if above timeout occurs (sigh)
|
||||
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
|
||||
|
|
Ładowanie…
Reference in New Issue