A simple IoTHub sample using AMQP as transport
Dependencies: EthernetInterface NTPClient iothub_amqp_transport iothub_client mbed-rtos mbed azure_c_shared_utility serializer wolfSSL azure_uamqp_c
This sample showcases the usage of Azure IoT client libraries with the AMQP transport for sending/receiving raw messages from an IoT Hub.
Diff: main.cpp
- Revision:
- 26:9662f727e974
- Parent:
- 25:9cb9b0c15218
- Child:
- 29:12a5fd69f49e
diff -r 9cb9b0c15218 -r 9662f727e974 main.cpp --- a/main.cpp Thu Feb 04 11:33:25 2016 -0800 +++ b/main.cpp Thu Feb 04 16:45:32 2016 -0800 @@ -2,12 +2,8 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdio.h> -#include "EthernetInterface.h" -#include "mbed/logging.h" -#include "mbed/mbedtime.h" #include "simplesample_amqp.h" -#include "NTPClient.h" -#include "azureiot_common/platform.h" +#include "platform.h" int main(void) @@ -15,9 +11,6 @@ int result; (void)printf("Initializing mbed specific things...\r\n"); - mbed_log_init(); - mbedtime_init(); - if ((result = platform_init()) != 0) { (void)printf("Error initializing the platform: %d\r\n",result);