mbed Connector Interface simplification API on top of mbed-client

Fork of mbedConnectorInterfaceV3 by Doug Anson

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!

Revision:
106:8c504a89c1dc
Parent:
105:aeaaee8fbb1d
Child:
109:e3fc9140cbbf
--- a/source/ConnectorEndpoint.cpp	Mon Apr 24 20:42:24 2017 +0000
+++ b/source/ConnectorEndpoint.cpp	Tue Apr 25 21:04:53 2017 +0000
@@ -211,6 +211,7 @@
 #ifdef ENABLE_MBED_CLOUD_SUPPORT
 // mbedCloudClient: initialize Storage
 bool Endpoint::initializeStorage() {
+#ifdef MBED_CLOUD_STORAGE_INIT
 	// initialize mbed-trace
 	mbed_trace_init();
 	
@@ -229,11 +230,16 @@
         this->logger()->log("initializeStorage: ERROR: mfcc_init failed with status=%d...", status);
         return false;
     }
+#else
+    // not enabled
+    this->logger()->log("initializeStorage: storage initialize disabled (OK)...");
+#endif
     return true;
 }
 
 // mbedCloudClient:: initialize factory flow
 bool Endpoint::initializeFactoryFlow() {
+#ifdef MBED_CLOUD_DEV_FLOW_INIT
 #ifdef MBED_CONF_APP_DEVELOPER_MODE
     this->logger()->log("initializeFactoryFlow: Start developer flow...");
     mfcc_status_e status = mfcc_developer_flow();
@@ -253,6 +259,10 @@
 	this->logger()->log("initializeFactoryFlow: non-developer factory flow chosen... continuing...");
 	return true;
 #endif
+#else
+	this->logger()->log("initializeFactoryFlow: developer flow init disabled (OK)...");
+	return true;
+#endif
 }
 
 // mbedCloudClient: create our interface