Remote monitoring IoTHub device sample Added real SHTx sensor to get temperature and humidity Added new command to set temperature scale change Removed "mock" commands to set temperature and humidity values It's configured to work on FRDM-K64F board

Dependencies:   EthernetInterface NTPClient SHTx iothub_amqp_transport iothub_client mbed-rtos mbed proton-c-mbed serializer wolfSSL

Fork of remote_monitoring by Azure IoT

Committer:
AzureIoTClient
Date:
Tue Sep 15 22:45:07 2015 -0700
Revision:
0:422f22f60a44
Child:
2:90e50410da9b
New release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AzureIoTClient 0:422f22f60a44 1 // Copyright (c) Microsoft. All rights reserved.
AzureIoTClient 0:422f22f60a44 2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
AzureIoTClient 0:422f22f60a44 3
AzureIoTClient 0:422f22f60a44 4 #include <stdio.h>
AzureIoTClient 0:422f22f60a44 5 #include "EthernetInterface.h"
AzureIoTClient 0:422f22f60a44 6 #include "mbed/logging.h"
AzureIoTClient 0:422f22f60a44 7 #include "mbed/mbedtime.h"
AzureIoTClient 0:422f22f60a44 8 #include "asset_monitoring.h"
AzureIoTClient 0:422f22f60a44 9
AzureIoTClient 0:422f22f60a44 10 int main(void)
AzureIoTClient 0:422f22f60a44 11 {
AzureIoTClient 0:422f22f60a44 12 (void)printf("Initializing mbed specific things...\r\n");
AzureIoTClient 0:422f22f60a44 13
AzureIoTClient 0:422f22f60a44 14 mbed_log_init();
AzureIoTClient 0:422f22f60a44 15 mbedtime_init();
AzureIoTClient 0:422f22f60a44 16
AzureIoTClient 0:422f22f60a44 17 EthernetInterface eth;
AzureIoTClient 0:422f22f60a44 18 if (eth.init() || eth.connect())
AzureIoTClient 0:422f22f60a44 19 {
AzureIoTClient 0:422f22f60a44 20 (void)printf("Error initializing EthernetInterface.\r\n");
AzureIoTClient 0:422f22f60a44 21 return -1;
AzureIoTClient 0:422f22f60a44 22 }
AzureIoTClient 0:422f22f60a44 23
AzureIoTClient 0:422f22f60a44 24 asset_monitoring_run();
AzureIoTClient 0:422f22f60a44 25
AzureIoTClient 0:422f22f60a44 26 return 0;
AzureIoTClient 0:422f22f60a44 27 }