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:
115:3dfd8e2f5442
Parent:
114:08ed5d15ae51
Child:
116:c88a6cd17137
--- a/source/ConnectorEndpoint.cpp	Fri Apr 28 19:43:06 2017 +0000
+++ b/source/ConnectorEndpoint.cpp	Thu May 04 16:35:07 2017 +0000
@@ -41,7 +41,7 @@
 #include "update_ui_example.h"
 
 // factory flow support
-#include "mbed_factory_configurator_client.h"
+#include "factory_configurator_client.h"
 #endif
 
 // our endpoint instance
@@ -242,13 +242,13 @@
 	// After this operation device must be injected again by using factory tool or developer certificate.
 #ifdef MBED_RESET_STORAGE
     this->logger()->log("initializeStorage: Resetting storage to an empty state...");
-    mfcc_status_e delete_status = mfcc_storage_delete();
-    if (delete_status != MFCC_STATUS_SUCCESS) {
+    fcc_status_e delete_status = fcc_storage_delete();
+    if (delete_status != FCC_STATUS_SUCCESS) {
         this->logger()->log("initializeStorage: Failed to reset storage to an empty state. status=%d (OK)...", delete_status);
     }
 #endif
-    mfcc_status_e status = mfcc_init();
-    if(status != MFCC_STATUS_SUCCESS) {
+    fcc_status_e status = fcc_init();
+    if(status != FCC_STATUS_SUCCESS) {
         this->logger()->log("initializeStorage: ERROR: mfcc_init failed with status=%d...", status);
         return false;
     }
@@ -264,15 +264,15 @@
 #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();
-    if (status == MFCC_STATUS_KCM_FILE_EXIST_ERROR) {
+    fcc_status_e status = fcc_developer_flow();
+    if (status == FCC_STATUS_KCM_FILE_EXIST_ERROR) {
         this->logger()->log("initializeFactoryFlow: Developer credentials already exists (OK)...");
-    } else if (status != MFCC_STATUS_SUCCESS) {
+    } else if (status != FCC_STATUS_SUCCESS) {
         this->logger()->log("initializeFactoryFlow: ERROR: Failed to load developer credentials");
         return false;
     }
     status = mfcc_verify_device_configured_4mbed_cloud();
-    if (status != MFCC_STATUS_SUCCESS) {
+    if (status != FCC_STATUS_SUCCESS) {
         this->logger()->log("initializeFactoryFlow: ERROR: Device not configured for mbed Cloud");
         return false;
     }