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:
97:b141b6b8b37f
Parent:
96:73a85768f235
Child:
98:56e429670fdb
--- a/source/ConnectorEndpoint.cpp	Thu Apr 20 20:11:52 2017 +0000
+++ b/source/ConnectorEndpoint.cpp	Thu Apr 20 20:15:48 2017 +0000
@@ -34,6 +34,7 @@
 
 // factory storage and configurator support (mbed Cloud R1.2+)
 #ifdef ENABLE_MBED_CLOUD_SUPPORT
+#include "mbed-trace/mbed_trace.h"
 #include "mbed_factory_configurator_client.h"
 #endif
 
@@ -200,7 +201,7 @@
 // Connector::Endpoint: create our interface
 void Endpoint::createEndpointInterface() {
 #ifdef ENABLE_MBED_CLOUD_SUPPORT
-	if (this->initializeStorage() && this->initializeFactoryFlow())) {
+	if (this->initializeStorage() && this->initializeFactoryFlow()) {
 		this->createCloudEndpointInterface();
 	}
 #else
@@ -236,7 +237,7 @@
 bool Endpoint::initializeFactoryFlow() {
 #ifdef MBED_CONF_APP_DEVELOPER_MODE
     this->logger()->log("initializeFactoryFlow: Start developer flow...");
-    status = mfcc_developer_flow();
+    mfcc_status_e status = mfcc_developer_flow();
     if (status == MFCC_STATUS_KCM_FILE_EXIST_ERROR) {
         this->logger()->log("initializeFactoryFlow: Developer credentials already exists (OK)...");
     } else if (status != MFCC_STATUS_SUCCESS) {