Yodiwo / Mbed 2 deprecated YoPlegma

Dependencies:   EthernetInterface FXOS8700Q HTTPClient HTTPD MQTTS SDFileSystem YodiwoPlegma mbed-rpc mbed-rtos mbed wolfSSL

Revision:
4:cc4c5b6d9730
Parent:
3:11b767300d32
--- a/pairing_backend.cpp	Tue Sep 15 14:43:15 2015 +0000
+++ b/pairing_backend.cpp	Mon Sep 21 06:56:11 2015 +0000
@@ -25,16 +25,16 @@
     return 0;
 }
 
-extern config_t configuration;
+extern Yodiwo_Tools_APIGenerator_CNodeConfig_t *activeConfig;
 
 int pairing_context_init_from_config(pairing_context *ctx, onPaired_callback callback)
 {
-    printf("server url: %s\n", configuration.pairingServerUrl);
-    printf("uuid: %s\n", configuration.uuid);
-    printf("name: %s\n", configuration.name);
-    ctx->postUrl = configuration.pairingServerUrl;
-    ctx->uuid = configuration.uuid;
-    ctx->name = configuration.name;
+    printf("server url: %s\n", activeConfig->PairingServerUrl);
+    printf("uuid: %s\n", activeConfig->Uuid);
+    printf("name: %s\n", activeConfig->Name);
+    ctx->postUrl = activeConfig->PairingServerUrl;
+    ctx->uuid = activeConfig->Uuid;
+    ctx->name = activeConfig->Name;
     ctx->onPaired = callback;
     return 0;    
 }