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

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?

UserRevisionLine numberNew contents of line
markrad 3:c0556ff7b8e3 1 /* EthernetInterface.h */
markrad 3:c0556ff7b8e3 2 /* Copyright (C) 2012 mbed.org, MIT License
markrad 3:c0556ff7b8e3 3 *
markrad 3:c0556ff7b8e3 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
markrad 3:c0556ff7b8e3 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
markrad 3:c0556ff7b8e3 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
markrad 3:c0556ff7b8e3 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
markrad 3:c0556ff7b8e3 8 * furnished to do so, subject to the following conditions:
markrad 3:c0556ff7b8e3 9 *
markrad 3:c0556ff7b8e3 10 * The above copyright notice and this permission notice shall be included in all copies or
markrad 3:c0556ff7b8e3 11 * substantial portions of the Software.
markrad 3:c0556ff7b8e3 12 *
markrad 3:c0556ff7b8e3 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
markrad 3:c0556ff7b8e3 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
markrad 3:c0556ff7b8e3 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
markrad 3:c0556ff7b8e3 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
markrad 3:c0556ff7b8e3 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
markrad 3:c0556ff7b8e3 18 */
markrad 3:c0556ff7b8e3 19
markrad 3:c0556ff7b8e3 20 // Architecture specific Ethernet interface
markrad 3:c0556ff7b8e3 21 // Must be implemented by each target
markrad 3:c0556ff7b8e3 22
markrad 3:c0556ff7b8e3 23 #ifndef ETHARCH_H_
markrad 3:c0556ff7b8e3 24 #define ETHARCH_H_
markrad 3:c0556ff7b8e3 25
markrad 3:c0556ff7b8e3 26 #include "lwip/netif.h"
markrad 3:c0556ff7b8e3 27
markrad 3:c0556ff7b8e3 28 #ifdef __cplusplus
markrad 3:c0556ff7b8e3 29 extern "C" {
markrad 3:c0556ff7b8e3 30 #endif
markrad 3:c0556ff7b8e3 31
markrad 3:c0556ff7b8e3 32 void eth_arch_enable_interrupts(void);
markrad 3:c0556ff7b8e3 33 void eth_arch_disable_interrupts(void);
markrad 3:c0556ff7b8e3 34 err_t eth_arch_enetif_init(struct netif *netif);
markrad 3:c0556ff7b8e3 35
markrad 3:c0556ff7b8e3 36 #ifdef __cplusplus
markrad 3:c0556ff7b8e3 37 }
markrad 3:c0556ff7b8e3 38 #endif
markrad 3:c0556ff7b8e3 39
markrad 3:c0556ff7b8e3 40 #endif // #ifndef ETHARCHINTERFACE_H_
markrad 3:c0556ff7b8e3 41