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
include/connector_debug.h
- Committer:
- spastor
- Date:
- 2013-12-03
- Revision:
- 1:908afea5a49d
- Parent:
- 0:1c358ea10753
File content as of revision 1:908afea5a49d:
/* * Copyright (c) 2013 Digi International Inc., * All rights not expressly granted are reserved. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343 * ======================================================================= */ #ifndef CONNECTOR_DEBUG_H_ #define CONNECTOR_DEBUG_H_ #include "connector_config.h" #if (defined CONNECTOR_DEBUG) /** * Debug output from Cloud Connector, Writes a formatted string to stdout, expanding the format * tags with the value of the argument list arg. This function behaves exactly as * printf except that the variable argument list is passed as a va_list instead of a * succession of arguments. * * In the C library the prototype for vprintf is defined as vprintf(const char *format, va_list ap); * */ void connector_debug_printf(char const * const format, ...); /** * @defgroup DEBUG_MACROS User Defined Debug Macros * @{ */ /** * Verify that the condition is true, otherwise halt the program. */ #define ASSERT(cond) assert(cond) /** * @} */ #else #define ASSERT(cond) #endif /** * Compile time assertion of functional state (limits, range checking, etc.) * * Failure will emit a compiler-specific error * gcc: 'duplicate case value' * Example: * CONFIRM(sizeof (int) == 4); * CONFIRM(CHAR_BIT == 8); * CONFIRM(ElementCount(array) == array_item_count); */ #define CONFIRM(cond) do { switch(0) {case 0: case (cond):;} } while (0) #endif