mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
NOTE:
This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!
Diff: mbed-connector-interface/mbedConnectorInterface.h
- Revision:
- 122:4072e03884e4
- Parent:
- 94:25ce0592620f
--- a/mbed-connector-interface/mbedConnectorInterface.h Fri Mar 31 06:21:29 2017 +0000 +++ b/mbed-connector-interface/mbedConnectorInterface.h Thu Jul 13 18:48:54 2017 +0000 @@ -39,16 +39,26 @@ #define MESH_THREAD 4 #define WIFI_ODIN 5 -// we will use ThreadedResourceObserver -#define CONNECTOR_USING_THREADS 1 +// ResourceObserver type selection based on version of mbedOS we are using +#if defined (MBED_CONF_RTOS_PRESENT) + // mbedOS5+ we will use EventQueueResourceObserver + #define CONNECTOR_USING_EVENT_QUEUES 1 +#else + // mbedOS2 we will use ThreadedResourceObserver + #define CONNECTOR_USING_THREADS 1 +#endif + +// mbedOS5 uses LWIP #define MCI_LWIP_INTERFACE true + +// mbed-client utilizes execute parameters #define HAS_EXECUTE_PARAMS true // Default node name #define NODE_NAME_LENGTH 128 #define NODE_NAME "mbed-endpoint" -// Connection URL to mbed Cloud +// Connection URL to mbed Connector (not used for mbed Cloud) #if MBED_CONF_APP_NETWORK_INTERFACE == MESH_LOWPAN_ND || MBED_CONF_APP_NETWORK_INTERFACE == MESH_THREAD // IPv6 URL Configuration #define CONNECTOR_URL "coaps://[2607:f0d0:2601:52::20]:5684"