33 *
44 * You must configure your particular hardware. Follow the steps below.
55 *
6- * Currently StandardFirmataWiFi is configured as a Wi-Fi server. An option to
7- * configure as a Wi-Fi client will be added in the future .
6+ * By default, StandardFirmataWiFi is configured as a TCP server, to configure
7+ * as a TCP client, see STEP 2 .
88 *============================================================================*/
99
1010// STEP 1 [REQUIRED]
1111// Uncomment / comment the appropriate set of includes for your hardware (OPTION A, B or C)
12- // Option A is enabled by default.
12+ // Arduino MKR1000 or ESP8266 are enabled by default if compiling for either of those boards .
1313
1414/*
1515 * OPTION A: Configure for Arduino MKR1000 or Arduino WiFi Shield 101
7575 * The appropriate libraries are included automatically when compiling for the ESP8266 so
7676 * continue on to STEP 2.
7777 *
78- * IMPORTANT: You must have the esp8266 board support installed. To easily install this board, open
79- * see the instructions here: https://github.com/esp8266/Arduino#installing-with-boards-manager.
78+ * IMPORTANT: You must have the esp8266 board support installed. To easily install this board see
79+ * the instructions here: https://github.com/esp8266/Arduino#installing-with-boards-manager.
8080 */
8181//do not modify the following 14 lines
8282#ifdef ESP8266
108108//#define HUZZAH_WIFI
109109
110110
111- // STEP 2 [REQUIRED for all boards and shields]
111+ // STEP 2 [OPTIONAL for all boards and shields]
112+ // If you want to setup you board as a TCP client, uncomment the following define and replace
113+ // the IP address with the IP address of your server.
114+ //#define SERVER_IP 10, 0, 0, 15
115+
116+
117+ // STEP 3 [REQUIRED for all boards and shields]
112118// replace this with your wireless network SSID
113119char ssid [] = "your_network_name" ;
114120
115121
116- // STEP 3 [OPTIONAL for all boards and shields]
122+ // STEP 4 [OPTIONAL for all boards and shields]
117123// If you want to use a static IP (v4) address, uncomment the line below. You can also change the IP.
118124// If the first line is commented out, the WiFi shield will attempt to get an IP from the DHCP server.
119125// If you are using a static IP with the ESP8266 then you must also uncomment the SUBNET and GATEWAY.
@@ -122,11 +128,6 @@ char ssid[] = "your_network_name";
122128//#define GATEWAY_IP_ADDRESS 0,0,0,0 // REQUIRED for ESP8266_WIFI, optional for others
123129
124130
125- // STEP 4 [OPTIONAL for all boards and shields]
126- // uncomment and replace with the IP address of your server if the Arduino is the TCP client
127- //#define SERVER_IP 10, 0, 0, 15
128-
129-
130131// STEP 5 [REQUIRED for all boards and shields]
131132// define your port number here, you will need this to open a TCP connection to your Arduino
132133#define SERVER_PORT 3030
@@ -214,7 +215,7 @@ char wep_key[] = "your_wep_key";
214215#else
215216 WiFiServerStream stream (SERVER_PORT );
216217#endif
217-
218+
218219/*==============================================================================
219220 * PIN IGNORE MACROS (don't change anything here)
220221 *============================================================================*/
0 commit comments