Microsoft Azure IoTHub client HTTP transport
Dependents: iothub_client_sample_http simplesample_http temp_sensor_anomaly
This library implements the HTTP transport for Microsoft Azure IoTHub client. The code is replicated from https://github.com/Azure/azure-iot-sdks
Revision 39:bc04888bf292, committed 2018-10-04
- Comitter:
- AzureIoTClient
- Date:
- Thu Oct 04 09:15:09 2018 -0700
- Parent:
- 38:01bf35934f1b
- Commit message:
- 1.2.10
Changed in this revision
iothubtransporthttp.c | Show annotated file Show diff for this revision Revisions of this file |
diff -r 01bf35934f1b -r bc04888bf292 iothubtransporthttp.c --- a/iothubtransporthttp.c Tue Sep 11 11:12:14 2018 -0700 +++ b/iothubtransporthttp.c Thu Oct 04 09:15:09 2018 -0700 @@ -1700,6 +1700,12 @@ LogError("unexpected HTTP status code (%u)", statusCode); } } + else if (r == HTTPAPIEX_RECOVERYFAILED) + { + PDLIST_ENTRY justSent = DList_RemoveHeadList(deviceData->waitingToSend); /*actually this is the same as "actual", but now it is removed*/ + DList_InsertTailList(&(deviceData->eventConfirmations), justSent); + IoTHubClientCore_LL_SendComplete(iotHubClientHandle, &(deviceData->eventConfirmations), IOTHUB_CLIENT_CONFIRMATION_ERROR); /*takes care of emptying the list too*/ + } } BUFFER_delete(toBeSend); }