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
iothub_client/iothub_client_version.h@3:c0556ff7b8e3, 2016-12-08 (annotated)
- Committer:
- markrad
- Date:
- Thu Dec 08 00:11:40 2016 +0000
- Revision:
- 3:c0556ff7b8e3
Hack the code to get restart working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
markrad | 3:c0556ff7b8e3 | 1 | // Copyright (c) Microsoft. All rights reserved. |
markrad | 3:c0556ff7b8e3 | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
markrad | 3:c0556ff7b8e3 | 3 | |
markrad | 3:c0556ff7b8e3 | 4 | /** @file iothub_client_version.h |
markrad | 3:c0556ff7b8e3 | 5 | * @brief Functions for managing the client SDK version. |
markrad | 3:c0556ff7b8e3 | 6 | */ |
markrad | 3:c0556ff7b8e3 | 7 | |
markrad | 3:c0556ff7b8e3 | 8 | #ifndef IOTHUB_CLIENT_VERSION_H |
markrad | 3:c0556ff7b8e3 | 9 | #define IOTHUB_CLIENT_VERSION_H |
markrad | 3:c0556ff7b8e3 | 10 | |
markrad | 3:c0556ff7b8e3 | 11 | #define IOTHUB_SDK_VERSION "1.1.0" |
markrad | 3:c0556ff7b8e3 | 12 | |
markrad | 3:c0556ff7b8e3 | 13 | #include "azure_c_shared_utility/umock_c_prod.h" |
markrad | 3:c0556ff7b8e3 | 14 | |
markrad | 3:c0556ff7b8e3 | 15 | #ifdef __cplusplus |
markrad | 3:c0556ff7b8e3 | 16 | extern "C" |
markrad | 3:c0556ff7b8e3 | 17 | { |
markrad | 3:c0556ff7b8e3 | 18 | #endif |
markrad | 3:c0556ff7b8e3 | 19 | |
markrad | 3:c0556ff7b8e3 | 20 | /** |
markrad | 3:c0556ff7b8e3 | 21 | * @brief Returns a pointer to a null terminated string containing the |
markrad | 3:c0556ff7b8e3 | 22 | * current IoT Hub Client SDK version. |
markrad | 3:c0556ff7b8e3 | 23 | * |
markrad | 3:c0556ff7b8e3 | 24 | * @return Pointer to a null terminated string containing the |
markrad | 3:c0556ff7b8e3 | 25 | * current IoT Hub Client SDK version. |
markrad | 3:c0556ff7b8e3 | 26 | */ |
markrad | 3:c0556ff7b8e3 | 27 | MOCKABLE_FUNCTION(, const char*, IoTHubClient_GetVersionString); |
markrad | 3:c0556ff7b8e3 | 28 | |
markrad | 3:c0556ff7b8e3 | 29 | #ifdef __cplusplus |
markrad | 3:c0556ff7b8e3 | 30 | } |
markrad | 3:c0556ff7b8e3 | 31 | #endif |
markrad | 3:c0556ff7b8e3 | 32 | |
markrad | 3:c0556ff7b8e3 | 33 | #endif // IOTHUB_CLIENT_VERSION_H |