A simple IoTHub sample using HTTP as transport
Dependencies: EthernetInterface NTPClient iothub_client iothub_http_transport mbed-rtos mbed wolfSSL serializer azure_c_shared_utility
This sample showcases the usage of Azure IoT client libraries with the HTTP transport for sending/receiving raw messages from an IoT Hub.
Diff: main.cpp
- Revision:
- 28:44b1d44d0d3b
- Parent:
- 23:39fcc72c3963
--- a/main.cpp Thu Feb 04 20:58:32 2016 +0000 +++ b/main.cpp Fri Mar 11 17:04:20 2016 -0800 @@ -1,26 +1,11 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#include <stdio.h> -#include "EthernetInterface.h" #include "simplesample_http.h" -#include "NTPClient.h" -#include "azureiot_common/platform.h" int main(void) { - int result; - (void)printf("Initializing mbed specific things...\r\n"); - - if ((result = platform_init()) != 0) - { - (void)printf("Error initializing the platform: %d\r\n",result); - return -1; - } simplesample_http_run(); - - platform_deinit(); - return 0; }