Etherios Cloud Connector very first porting for mbed. Tested in an LPC1768

Etherios Cloud Connector for Embedded v2.1.0.3 library for mbed. Early porting.

This port is centered mainly in the platform code. So it should work properly with the provided examples of send_data, device_request, data_points, RCI and firmware_update (stub implementation, not a real one... yet ;-)). Filesystem is not implemented yet, and some examples might need changes.

To run, it needs the following libraries: - mbed - mbed-rtos - EthernetInterface

Find more information (and the source code!) about Etherios Cloud Connector for Embedded here: http://www.etherios.com/products/devicecloud/support/connector and in: http://www.etherios.com

Committer:
spastor
Date:
Tue Dec 03 14:10:48 2013 +0000
Revision:
1:908afea5a49d
Parent:
0:1c358ea10753
Use internal Thread.h instead of Threads.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
spastor 0:1c358ea10753 1 /*
spastor 0:1c358ea10753 2 * Copyright (c) 2013 Digi International Inc.,
spastor 0:1c358ea10753 3 * All rights not expressly granted are reserved.
spastor 0:1c358ea10753 4 *
spastor 0:1c358ea10753 5 * This Source Code Form is subject to the terms of the Mozilla Public
spastor 0:1c358ea10753 6 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
spastor 0:1c358ea10753 7 * You can obtain one at http://mozilla.org/MPL/2.0/.
spastor 0:1c358ea10753 8 *
spastor 0:1c358ea10753 9 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
spastor 0:1c358ea10753 10 * =======================================================================
spastor 0:1c358ea10753 11 */
spastor 0:1c358ea10753 12 #ifndef CONNECTOR_DEBUG_H_
spastor 0:1c358ea10753 13 #define CONNECTOR_DEBUG_H_
spastor 0:1c358ea10753 14
spastor 0:1c358ea10753 15 #include "connector_config.h"
spastor 0:1c358ea10753 16
spastor 0:1c358ea10753 17 #if (defined CONNECTOR_DEBUG)
spastor 0:1c358ea10753 18 /**
spastor 0:1c358ea10753 19 * Debug output from Cloud Connector, Writes a formatted string to stdout, expanding the format
spastor 0:1c358ea10753 20 * tags with the value of the argument list arg. This function behaves exactly as
spastor 0:1c358ea10753 21 * printf except that the variable argument list is passed as a va_list instead of a
spastor 0:1c358ea10753 22 * succession of arguments.
spastor 0:1c358ea10753 23 *
spastor 0:1c358ea10753 24 * In the C library the prototype for vprintf is defined as vprintf(const char *format, va_list ap);
spastor 0:1c358ea10753 25 *
spastor 0:1c358ea10753 26 */
spastor 0:1c358ea10753 27 void connector_debug_printf(char const * const format, ...);
spastor 0:1c358ea10753 28
spastor 0:1c358ea10753 29 /**
spastor 0:1c358ea10753 30 * @defgroup DEBUG_MACROS User Defined Debug Macros
spastor 0:1c358ea10753 31 * @{
spastor 0:1c358ea10753 32 */
spastor 0:1c358ea10753 33 /**
spastor 0:1c358ea10753 34 * Verify that the condition is true, otherwise halt the program.
spastor 0:1c358ea10753 35 */
spastor 0:1c358ea10753 36 #define ASSERT(cond) assert(cond)
spastor 0:1c358ea10753 37 /**
spastor 0:1c358ea10753 38 * @}
spastor 0:1c358ea10753 39 */
spastor 0:1c358ea10753 40
spastor 0:1c358ea10753 41 #else
spastor 0:1c358ea10753 42
spastor 0:1c358ea10753 43 #define ASSERT(cond)
spastor 0:1c358ea10753 44 #endif
spastor 0:1c358ea10753 45
spastor 0:1c358ea10753 46 /**
spastor 0:1c358ea10753 47 * Compile time assertion of functional state (limits, range checking, etc.)
spastor 0:1c358ea10753 48 *
spastor 0:1c358ea10753 49 * Failure will emit a compiler-specific error
spastor 0:1c358ea10753 50 * gcc: 'duplicate case value'
spastor 0:1c358ea10753 51 * Example:
spastor 0:1c358ea10753 52 * CONFIRM(sizeof (int) == 4);
spastor 0:1c358ea10753 53 * CONFIRM(CHAR_BIT == 8);
spastor 0:1c358ea10753 54 * CONFIRM(ElementCount(array) == array_item_count);
spastor 0:1c358ea10753 55 */
spastor 0:1c358ea10753 56 #define CONFIRM(cond) do { switch(0) {case 0: case (cond):;} } while (0)
spastor 0:1c358ea10753 57
spastor 0:1c358ea10753 58
spastor 0:1c358ea10753 59 #endif
spastor 0:1c358ea10753 60