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
spastor 0:1c358ea10753 13 #ifndef CHK_CONFIG_H_
spastor 0:1c358ea10753 14 #define CHK_CONFIG_H_
spastor 0:1c358ea10753 15
spastor 0:1c358ea10753 16 #if (defined CONNECTOR_TRANSPORT_TCP)
spastor 0:1c358ea10753 17
spastor 0:1c358ea10753 18 #if (defined CONNECTOR_VENDOR_ID)
spastor 0:1c358ea10753 19 #if (CONNECTOR_VENDOR_ID > CONNECTOR_MAX_VENDOR_ID_NUMBER) || (CONNECTOR_VENDOR_ID == 0)
spastor 0:1c358ea10753 20 #error "Invalid CONNECTOR_VENDOR_ID in connector_config.h"
spastor 0:1c358ea10753 21 #endif
spastor 0:1c358ea10753 22 #endif
spastor 0:1c358ea10753 23
spastor 0:1c358ea10753 24 #if (defined CONNECTOR_TX_KEEPALIVE_IN_SECONDS)
spastor 0:1c358ea10753 25 #if (CONNECTOR_TX_KEEPALIVE_IN_SECONDS < MIN_TX_KEEPALIVE_INTERVAL_IN_SECONDS) || (CONNECTOR_TX_KEEPALIVE_IN_SECONDS > MAX_TX_KEEPALIVE_INTERVAL_IN_SECONDS)
spastor 0:1c358ea10753 26 #error "Invalid CONNECTOR_TX_KEEPALIVE_IN_SECONDS value in connector_config.h."
spastor 0:1c358ea10753 27 #endif
spastor 0:1c358ea10753 28 #endif
spastor 0:1c358ea10753 29
spastor 0:1c358ea10753 30 #if (defined CONNECTOR_RX_KEEPALIVE_IN_SECONDS)
spastor 0:1c358ea10753 31 #if (CONNECTOR_RX_KEEPALIVE_IN_SECONDS < MIN_RX_KEEPALIVE_INTERVAL_IN_SECONDS) || (CONNECTOR_RX_KEEPALIVE_IN_SECONDS > MAX_RX_KEEPALIVE_INTERVAL_IN_SECONDS)
spastor 0:1c358ea10753 32 #error "Invalid CONNECTOR_RX_KEEPALIVE_IN_SECONDS value in connector_config.h."
spastor 0:1c358ea10753 33 #endif
spastor 0:1c358ea10753 34 #endif
spastor 0:1c358ea10753 35
spastor 0:1c358ea10753 36 #if (defined CONNECTOR_WAIT_COUNT)
spastor 0:1c358ea10753 37 #if (CONNECTOR_WAIT_COUNT < WAIT_COUNT_MIN) || (CONNECTOR_WAIT_COUNT > WAIT_COUNT_MAX)
spastor 0:1c358ea10753 38 #error "Invalid CONNECTOR_WAIT_COUNT value in connector_config.h."
spastor 0:1c358ea10753 39 #endif
spastor 0:1c358ea10753 40 #endif
spastor 0:1c358ea10753 41
spastor 0:1c358ea10753 42 #if (defined CONNECTOR_MSG_MAX_TRANSACTION)
spastor 0:1c358ea10753 43 #if (CONNECTOR_MSG_MAX_TRANSACTION < 0 || CONNECTOR_MSG_MAX_TRANSACTION > CONNECTOR_MAX_TRANSACTIONS_LIMIT)
spastor 0:1c358ea10753 44 #error "Invalid CONNECTOR_MSG_MAX_TRANSACTION value in connector_config.h"
spastor 0:1c358ea10753 45 #endif
spastor 0:1c358ea10753 46 #endif
spastor 0:1c358ea10753 47
spastor 0:1c358ea10753 48 #endif
spastor 0:1c358ea10753 49
spastor 0:1c358ea10753 50 #if (CONNECTOR_VERSION < 0x02010000)
spastor 0:1c358ea10753 51 /* Translate macros that have been renamed */
spastor 0:1c358ea10753 52 #if (defined CONNECTOR_SM_MAX_SEGMENTS)
spastor 0:1c358ea10753 53 #define CONNECTOR_SM_MAX_RX_SEGMENTS CONNECTOR_SM_MAX_SEGMENTS
spastor 0:1c358ea10753 54 #define CONNECTOR_SM_MAX_DATA_POINTS_SEGMENTS CONNECTOR_SM_MAX_SEGMENTS
spastor 0:1c358ea10753 55 #endif
spastor 0:1c358ea10753 56 #endif
spastor 0:1c358ea10753 57
spastor 0:1c358ea10753 58 #if (defined CONNECTOR_RCI_MAXIMUM_CONTENT_LENGTH)
spastor 0:1c358ea10753 59 #if CONNECTOR_RCI_MAXIMUM_CONTENT_LENGTH > SIZE_MAX
spastor 0:1c358ea10753 60 #error "Invalid CONNECTOR_RCI_MAXIMUM_CONTENT_LENGTH, it must be lower than SIZE_MAX"
spastor 0:1c358ea10753 61 #endif
spastor 0:1c358ea10753 62 #endif
spastor 0:1c358ea10753 63
spastor 0:1c358ea10753 64 #endif
spastor 0:1c358ea10753 65