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.
Dependencies: iothub_client EthernetInterface iothub_http_transport mbed-rtos mbed wolfSSL azure_c_shared_utility NTPClient
Diff: iothub_client_sample_http.c
- Revision:
- 54:54dc461c75da
- Parent:
- 49:2aa1b773af3c
- Child:
- 62:2320ad565fc3
--- a/iothub_client_sample_http.c Thu Sep 22 18:17:32 2016 -0700
+++ b/iothub_client_sample_http.c Thu Oct 20 17:08:51 2016 -0700
@@ -58,7 +58,7 @@
else
{
(void)printf("Received Message [%d] with Data: <<<%.*s>>> & Size=%d\r\n", *counter, (int)size, buffer, (int)size);
- if (memcmp(buffer, "quit", size) == 0)
+ if (size == (strlen("quit") * sizeof(char)) && memcmp(buffer, "quit", size) == 0)
{
g_continueRunning = false;
}
