Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: iothub_client_sample_http simplesample_http temp_sensor_anomaly
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 |
--- 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); }