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 38:01bf35934f1b, committed 2018-09-11
- Comitter:
- AzureIoTClient
- Date:
- Tue Sep 11 11:12:14 2018 -0700
- Parent:
- 37:ce4c05dd8a6d
- Child:
- 39:bc04888bf292
- Commit message:
- 1.2.9
Changed in this revision
| iothubtransporthttp.c | Show annotated file Show diff for this revision Revisions of this file |
| iothubtransporthttp.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/iothubtransporthttp.c Tue Jun 26 19:13:35 2018 -0700
+++ b/iothubtransporthttp.c Tue Sep 11 11:12:14 2018 -0700
@@ -39,7 +39,7 @@
/*DEFAULT_GETMINIMUMPOLLINGTIME is the minimum time in seconds allowed between 2 consecutive GET issues to the service (GET=fetch messages)*/
/*the default is 25 minutes*/
-#define DEFAULT_GETMINIMUMPOLLINGTIME ((unsigned int)25*60)
+#define DEFAULT_GETMINIMUMPOLLINGTIME ((unsigned int)25*60)
#define MAXIMUM_MESSAGE_SIZE (255*1024-1)
#define MAXIMUM_PAYLOAD_OVERHEAD 384
@@ -1599,7 +1599,7 @@
}
}
- // Codes_SRS_TRANSPORTMULTITHTTP_09_001: [ If the IoTHubMessage being sent contains property `content-type` it shall be added to the HTTP headers as "iothub-contenttype":"value". ]
+ // Codes_SRS_TRANSPORTMULTITHTTP_09_001: [ If the IoTHubMessage being sent contains property `content-type` it shall be added to the HTTP headers as "iothub-contenttype":"value". ]
userDefinedContentType = IoTHubMessage_GetContentTypeSystemProperty(message->messageHandle);
if (goOn && userDefinedContentType != NULL)
{
@@ -1610,7 +1610,7 @@
}
}
- // Codes_SRS_TRANSPORTMULTITHTTP_09_002: [ If the IoTHubMessage being sent contains property `content-encoding` it shall be added to the HTTP headers as "iothub-contentencoding":"value". ]
+ // Codes_SRS_TRANSPORTMULTITHTTP_09_002: [ If the IoTHubMessage being sent contains property `content-encoding` it shall be added to the HTTP headers as "iothub-contentencoding":"value". ]
contentEncoding = IoTHubMessage_GetContentEncodingSystemProperty(message->messageHandle);
if (goOn && contentEncoding != NULL)
{
@@ -2205,7 +2205,7 @@
}
}
}
- // Codes_SRS_TRANSPORTMULTITHTTP_09_003: [ The HTTP header value of `ContentType` shall be set in the `IoTHubMessage_SetContentTypeSystemProperty`. ]
+ // Codes_SRS_TRANSPORTMULTITHTTP_09_003: [ The HTTP header value of `ContentType` shall be set in the `IoTHubMessage_SetContentTypeSystemProperty`. ]
else if (strncmp(IOTHUB_CONTENT_TYPE_C2D, completeHeader, strlen(IOTHUB_CONTENT_TYPE_C2D)) == 0)
{
char* whereIsColon = strchr(completeHeader, ':');
@@ -2220,7 +2220,7 @@
}
}
}
- // Codes_SRS_TRANSPORTMULTITHTTP_09_004: [ The HTTP header value of `ContentEncoding` shall be set in the `IoTHub_SetContentEncoding`. ]
+ // Codes_SRS_TRANSPORTMULTITHTTP_09_004: [ The HTTP header value of `ContentEncoding` shall be set in the `IoTHub_SetContentEncoding`. ]
else if (strncmp(IOTHUB_CONTENT_ENCODING_C2D, completeHeader, strlen(IOTHUB_CONTENT_ENCODING_C2D)) == 0)
{
char* whereIsColon = strchr(completeHeader, ':');
--- a/iothubtransporthttp.h Tue Jun 26 19:13:35 2018 -0700
+++ b/iothubtransporthttp.h Tue Sep 11 11:12:14 2018 -0700
@@ -11,7 +11,7 @@
{
#endif
- extern const TRANSPORT_PROVIDER* HTTP_Protocol(void);
+ extern const TRANSPORT_PROVIDER* HTTP_Protocol(void);
#ifdef __cplusplus
}