NuMaker WiFi TCP Example

Revision:
23:dc536ce49b37
Parent:
22:6d0bb671f937
Child:
24:38e186a10abe
--- a/main.cpp	Fri Oct 04 03:22:21 2019 +0000
+++ b/main.cpp	Tue Oct 08 15:40:04 2019 +0800
@@ -24,7 +24,7 @@
 #       if TARGET_NUMAKER_IOT_M487
 DigitalOut esp_rst(PH_3, 0);        // Simulate reset button pressed
 ESP8266Interface esp(PH_8, PH_9);
-#       elif TARGET_NUMAKER_PFM_M2351
+#       elif TARGET_NU_PFM_M2351_NPSA_NS
 DigitalIn esp_gpio0(PD_6);          // Go boot mode by default
                                     // User can change to F/W update mode by short'ing ESP8266 GPIO0/GND
                                     // before power-on
@@ -90,7 +90,7 @@
     wait_ms(5);
     esp_rst = 1;                    // Simulate reset button released
     wait_ms(5);
-#       elif TARGET_NUMAKER_PFM_M2351
+#       elif TARGET_NU_PFM_M2351_NPSA_NS
     wait_ms(50);
     esp_pwr_off = 0;                // Turn on on-board ESP8266
     wait_ms(50);