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 13:34:02 2013 +0000
Revision:
0:1c358ea10753
First commit

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 #include "connector_config.h"
spastor 0:1c358ea10753 13
spastor 0:1c358ea10753 14 #if (defined CONNECTOR_DEBUG)
spastor 0:1c358ea10753 15 #include <stdio.h>
spastor 0:1c358ea10753 16 #include <stdlib.h>
spastor 0:1c358ea10753 17 #include <stdarg.h>
spastor 0:1c358ea10753 18
spastor 0:1c358ea10753 19
spastor 0:1c358ea10753 20 void connector_debug_printf(char const * const format, ...)
spastor 0:1c358ea10753 21 {
spastor 0:1c358ea10753 22 va_list args;
spastor 0:1c358ea10753 23
spastor 0:1c358ea10753 24 va_start(args, format);
spastor 0:1c358ea10753 25 vprintf(format, args);
spastor 0:1c358ea10753 26 va_end(args);
spastor 0:1c358ea10753 27 fflush(stdout);
spastor 0:1c358ea10753 28 }
spastor 0:1c358ea10753 29 #else
spastor 0:1c358ea10753 30 /* to avoid ISO C forbids an empty translation unit compiler error */
spastor 0:1c358ea10753 31 typedef int dummy;
spastor 0:1c358ea10753 32
spastor 0:1c358ea10753 33 #endif
spastor 0:1c358ea10753 34
spastor 0:1c358ea10753 35