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:
- 29:12a5fd69f49e
- Parent:
- 26:9662f727e974
diff -r 0b867098c0c8 -r 12a5fd69f49e main.cpp --- a/main.cpp Thu Feb 04 17:40:49 2016 -0800 +++ b/main.cpp Fri Mar 11 17:03:54 2016 -0800 @@ -1,24 +1,10 @@ // 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 "simplesample_amqp.h" -#include "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_amqp_run(); - - platform_deinit(); return 0; }