Simple sample that demonstrates reading the FXOS8700CQ accelerometer, convert the data to JSON and send to an Azure IoT Hub.

Dependencies:   azure_umqtt_c iothub_mqtt_transport mbed-rtos mbed wolfSSL Socket lwip-eth lwip-sys lwip

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers platform.h Source File

platform.h

00001 // Copyright (c) Microsoft. All rights reserved.
00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
00003 
00004 #ifndef PLATFORM_H
00005 #define PLATFORM_H
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif /* __cplusplus */
00010 
00011 #include "azure_c_shared_utility/xio.h"
00012 #include "azure_c_shared_utility/umock_c_prod.h"
00013 
00014     MOCKABLE_FUNCTION(, int, platform_init);
00015     MOCKABLE_FUNCTION(, void, platform_deinit);
00016     MOCKABLE_FUNCTION(, const IO_INTERFACE_DESCRIPTION*, platform_get_default_tlsio);
00017 
00018 #ifdef __cplusplus
00019 }
00020 #endif /* __cplusplus */
00021 
00022 #endif /* PLATFORM_H */