NuMaker connection with AWS IoT thru MQTT/HTTPS

Dependencies:   MQTT

Revision:
12:97762a6f55e9
Parent:
1:5ffad9f24d63
Child:
13:8114b540d342
--- a/mbed_app.json	Fri Oct 12 09:11:43 2018 +0800
+++ b/mbed_app.json	Fri Oct 12 15:30:28 2018 +0800
@@ -1,48 +1,33 @@
 {
     "macros": [
         "MBED_CONF_APP_MAIN_STACK_SIZE=4096",
-        "MBEDTLS_USER_CONFIG_FILE=\"mbedtls_user_config.h\"",
-        "MBED_HEAP_STATS_ENABLED=1",
-        "MBED_MEM_TRACING_ENABLED=1"
+        "MBEDTLS_USER_CONFIG_FILE=\"mbedtls_user_config.h\""
     ],
-    "config": {
-        "network-interface":{
-            "help": "options are ETHERNET, WIFI_ESP8266, WIFI_ODIN, WIFI_IDW01M1, WIFI_RTW, MESH_LOWPAN_ND, MESH_THREAD",
-            "value": "ETHERNET"
-        },
-        "esp8266-tx": {
-            "help": "Pin used as TX (connects to ESP8266 RX)",
-            "value": "D1"
-        },
-        "esp8266-rx": {
-            "help": "Pin used as RX (connects to ESP8266 TX)",
-            "value": "D0"
-        },
-        "esp8266-debug": {
-            "value": false
-        },
-        "wifi-ssid": {
-            "value": "\"SSID\""
-        },
-        "wifi-password": {
-            "value": "\"PASSWORD\""
-        }
-    },
     "target_overrides": {
         "*": {
-             "platform.stdio-baud-rate": 9600,
-             "platform.stdio-convert-newlines": true
-        },
-        "UBLOX_EVK_ODIN_W2": {
-            "target.device_has_remove": ["EMAC"]
+            "platform.stdio-baud-rate"              : 9600,
+            "platform.stdio-convert-newlines"       : true,
+            "platform.heap-stats-enabled"           : 1,
+            "mbed-trace.enable"                     : null,
+            "nsapi.default-wifi-security"           : "WPA_WPA2",
+            "nsapi.default-wifi-ssid"               : "\"SSID\"",
+            "nsapi.default-wifi-password"           : "\"Password\"",
+            "drivers.uart-serial-rxbuf-size"        : 1024,
+            "drivers.uart-serial-txbuf-size"        : 1024
         },
         "NUMAKER_PFM_NUC472": {
-            "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"],
-            "drivers.uart-serial-rxbuf-size": 1024
+            "target.network-default-interface-type" : "WIFI",
+            "target.macros_add": [
+                "ESP8266_AT_SEL=ESP8266_AT_EXTERN"
+            ],
+            "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"]
         },
         "NUMAKER_PFM_M487": {
-            "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"],
-            "drivers.uart-serial-rxbuf-size": 1024
+            "target.network-default-interface-type" : "WIFI",
+            "target.macros_add": [
+                "ESP8266_AT_SEL=ESP8266_AT_EXTERN"
+            ],
+            "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"]
         }
     }
 }