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.

main.cpp

Committer:
Azure.IoT Build
Date:
2016-02-04
Revision:
26:9662f727e974
Parent:
25:9cb9b0c15218
Child:
29:12a5fd69f49e

File content as of revision 26:9662f727e974:

// 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;
}