NuMaker WiFi TCP Example

Revision:
24:38e186a10abe
Parent:
23:dc536ce49b37
Child:
25:73518246e472
--- a/mbed_app.json	Tue Oct 08 15:40:04 2019 +0800
+++ b/mbed_app.json	Tue Oct 08 15:48:42 2019 +0800
@@ -1,50 +1,58 @@
 {
-    "config": {
-        "network-interface":{
-            "help": "options are ETHERNET, WIFI, MESH_LOWPAN_ND, MESH_THREAD",
-            "value": "WIFI"
-        },
-        "wifi-ssid": {
-            "help": "WiFi SSID",
-            "value": "\"SSID\""
-        },
-        "wifi-password": {
-            "help": "WiFi Password",
-            "value": "\"Password\""
-        }
-    },
     "target_overrides": {
         "*": {
             "platform.stdio-baud-rate"              : 115200,
             "platform.stdio-convert-newlines"       : true,
             "platform.heap-stats-enabled"           : 1,
-            "drivers.uart-serial-rxbuf-size"        : 1024,
-            "drivers.uart-serial-txbuf-size"        : 1024
+            "nsapi.default-wifi-security"           : "WPA_WPA2",
+            "nsapi.default-wifi-ssid"               : "\"SSID\"",
+            "nsapi.default-wifi-password"           : "\"Password\""
         },
         "NUMAKER_PFM_NUC472": {
-            "target.macros_add": [
-                "ESP8266_AT_SEL=ESP8266_AT_EXTERN"
-            ]
+            "target.network-default-interface-type" : "WIFI",
+            "esp8266.tx"                            : "PD_15",
+            "esp8266.rx"                            : "PF_0",
+            "esp8266.rts"                           : "PD_14",
+            "esp8266.cts"                           : "PD_13",
+            "esp8266.rst"                           : "D2",
+            "esp8266.provide-default"               : true
         },
         "NUMAKER_PFM_M487": {
-            "target.macros_add": [
-                "ESP8266_AT_SEL=ESP8266_AT_EXTERN"
-            ]
+            "target.network-default-interface-type" : "WIFI",
+            "esp8266.tx"                            : "D1",
+            "esp8266.rx"                            : "D0",
+            "esp8266.rts"                           : "A2",
+            "esp8266.cts"                           : "A3",
+            "esp8266.rst"                           : "D2",
+            "esp8266.provide-default"               : true
         },
         "NUMAKER_IOT_M487": {
-            "target.macros_add": [
-                "ESP8266_AT_SEL=ESP8266_AT_ONBOARD"
-            ]
+            "target.network-default-interface-type" : "WIFI",
+            "esp8266.tx"                            : "PH_8",
+            "esp8266.rx"                            : "PH_9",
+            "esp8266.rts"                           : "A2",
+            "esp8266.cts"                           : "A3",
+            "esp8266.rst"                           : "PH_3",
+            "esp8266.provide-default"               : true
         },
         "NU_PFM_M2351_NPSA_NS": {
-            "target.macros_add": [
-                "ESP8266_AT_SEL=ESP8266_AT_ONBOARD"
-            ]
+            "target.network-default-interface-type" : "WIFI",
+            "esp8266.tx"                            : "PD_1",
+            "esp8266.rx"                            : "PD_0",
+            "esp8266.rts"                           : "PD_3",
+            "esp8266.cts"                           : "PD_2",
+            "esp8266.rst"                           : "NC",
+            "esp8266.pwr"                           : "PD_7",
+            "esp8266.provide-default"               : true
         },
         "NUMAKER_IOT_M263A": {
-            "target.macros_add": [
-                "ESP8266_AT_SEL=ESP8266_AT_ONBOARD"
-            ]
+            "target.network-default-interface-type" : "WIFI",
+            "esp8266.tx"                            : "PC_7",
+            "esp8266.rx"                            : "PC_6",
+            "esp8266.rts"                           : "PE_13",
+            "esp8266.cts"                           : "PC_8",
+            "esp8266.rst"                           : "PE_12",
+            "esp8266.provide-default"               : true
         }
     }
 }