This repository was archived by the owner on Feb 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 34 files changed +99
-137
lines changed Expand file tree Collapse file tree 34 files changed +99
-137
lines changed Original file line number Diff line number Diff line change @@ -233,12 +233,10 @@ void setup()
233
233
digitalWrite (led, 0 );
234
234
235
235
Serial.begin (115200 );
236
- while (!Serial);
236
+ while (!Serial && millis () < 5000 );
237
237
238
- Serial.print (F (" \n Starting AdvancedServer on " ));
239
- Serial.print (BOARD_NAME);
240
- Serial.print (F (" with " ));
241
- Serial.println (SHIELD_TYPE);
238
+ Serial.print (F (" \n Starting AdvancedServer on " )); Serial.print (BOARD_NAME);
239
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
242
240
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
243
241
244
242
// initialize serial for ESP module
Original file line number Diff line number Diff line change @@ -178,12 +178,10 @@ void setup()
178
178
digitalWrite (led, 0 );
179
179
180
180
Serial.begin (115200 );
181
- while (!Serial);
181
+ while (!Serial && millis () < 5000 );
182
182
183
- Serial.print (F (" \n Starting AdvancedWebServer_STM32 on " ));
184
- Serial.print (BOARD_NAME);
185
- Serial.print (F (" with " ));
186
- Serial.println (SHIELD_TYPE);
183
+ Serial.print (F (" \n Starting AdvancedWebServer_STM32 on " )); Serial.print (BOARD_NAME);
184
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
187
185
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
188
186
189
187
// initialize serial for ESP module
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ define EspSerial Serial3
350
350
351
351
#include <ESP8266_AT_WebServer.h>
352
352
353
- char ssid [] = "**** " ; // your network SSID (name)
354
- char pass [] = "**** " ; // your network password
353
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
354
+ char pass [] = "12345678 " ; // your network password
355
355
356
356
#endif //defines_h
Original file line number Diff line number Diff line change @@ -84,12 +84,10 @@ void printCurrentNet()
84
84
void setup ()
85
85
{
86
86
Serial.begin (115200 );
87
- while (!Serial);
87
+ while (!Serial && millis () < 5000 );
88
88
89
- Serial.print (F (" \n Starting ConnectWPA on " ));
90
- Serial.print (BOARD_NAME);
91
- Serial.print (F (" with " ));
92
- Serial.println (SHIELD_TYPE);
89
+ Serial.print (F (" \n Starting ConnectWPA on " )); Serial.print (BOARD_NAME);
90
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
93
91
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
94
92
95
93
// initialize serial for ESP module
Original file line number Diff line number Diff line change 389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -102,12 +102,10 @@ void setup()
102
102
{
103
103
// Open serial communications and wait for port to open:
104
104
Serial.begin (115200 );
105
- while (!Serial);
105
+ while (!Serial && millis () < 5000 );
106
106
107
- Serial.print (F (" \n Starting HelloServer on " ));
108
- Serial.print (BOARD_NAME);
109
- Serial.print (F (" with " ));
110
- Serial.println (SHIELD_TYPE);
107
+ Serial.print (F (" \n Starting HelloServer on " )); Serial.print (BOARD_NAME);
108
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
111
109
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
112
110
113
111
// initialize serial for ESP module
Original file line number Diff line number Diff line change @@ -105,12 +105,10 @@ void setup()
105
105
106
106
// Open serial communications and wait for port to open:
107
107
Serial.begin (115200 );
108
- while (!Serial);
108
+ while (!Serial && millis () < 5000 );
109
109
110
- Serial.print (F (" \n Starting HelloServer2 on " ));
111
- Serial.print (BOARD_NAME);
112
- Serial.print (F (" with " ));
113
- Serial.println (SHIELD_TYPE);
110
+ Serial.print (F (" \n Starting HelloServer2 on " )); Serial.print (BOARD_NAME);
111
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
114
112
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
115
113
116
114
// initialize serial for ESP module
Original file line number Diff line number Diff line change 389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -51,12 +51,10 @@ const char* www_username = "admin";
51
51
void setup ()
52
52
{
53
53
Serial.begin (115200 );
54
- while (!Serial);
54
+ while (!Serial && millis () < 5000 );
55
55
56
- Serial.print (F (" \n Starting HTTPBasicAuth on " ));
57
- Serial.print (BOARD_NAME);
58
- Serial.print (F (" with " ));
59
- Serial.println (SHIELD_TYPE);
56
+ Serial.print (F (" \n Starting HTTPBasicAuth on " )); Serial.print (BOARD_NAME);
57
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
60
58
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
61
59
62
60
// initialize serial for ESP module
Original file line number Diff line number Diff line change 389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -115,12 +115,10 @@ void setup()
115
115
{
116
116
// Open serial communications and wait for port to open:
117
117
Serial.begin (115200 );
118
- while (!Serial);
118
+ while (!Serial && millis () < 5000 );
119
119
120
- Serial.print (F (" \n Starting MQTTClient_Auth on " ));
121
- Serial.print (BOARD_NAME);
122
- Serial.print (F (" with " ));
123
- Serial.println (SHIELD_TYPE);
120
+ Serial.print (F (" \n Starting MQTTClient_Auth on " )); Serial.print (BOARD_NAME);
121
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
124
122
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
125
123
126
124
// initialize serial for ESP module
Original file line number Diff line number Diff line change 389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -116,12 +116,10 @@ void setup()
116
116
{
117
117
// Open serial communications and wait for port to open:
118
118
Serial.begin (115200 );
119
- while (!Serial);
119
+ while (!Serial && millis () < 5000 );
120
120
121
- Serial.print (F (" \n Starting MQTTClient_Basic on " ));
122
- Serial.print (BOARD_NAME);
123
- Serial.print (F (" with " ));
124
- Serial.println (SHIELD_TYPE);
121
+ Serial.print (F (" \n Starting MQTTClient_Basic on " )); Serial.print (BOARD_NAME);
122
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
125
123
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
126
124
127
125
// initialize serial for ESP module
Original file line number Diff line number Diff line change 389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -160,12 +160,10 @@ void setup()
160
160
{
161
161
// Open serial communications and wait for port to open:
162
162
Serial.begin (115200 );
163
- while (!Serial);
163
+ while (!Serial && millis () < 5000 );
164
164
165
- Serial.print (F (" \n Starting MQTT_ThingStream on " ));
166
- Serial.print (BOARD_NAME);
167
- Serial.print (F (" with " ));
168
- Serial.println (SHIELD_TYPE);
165
+ Serial.print (F (" \n Starting MQTT_ThingStream on " )); Serial.print (BOARD_NAME);
166
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
169
167
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
170
168
171
169
// initialize serial for ESP module
Original file line number Diff line number Diff line change 363
363
364
364
#endif
365
365
366
- #define EspSerial Serial1
366
+ #define EspSerial Serial1
367
367
368
368
#elif (ESP_AT_USE_AVR )
369
369
389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -140,12 +140,10 @@ void setup()
140
140
digitalWrite (led, 0 );
141
141
142
142
Serial.begin (115200 );
143
- while (!Serial);
143
+ while (!Serial && millis () < 5000 );
144
144
145
- Serial.print (F (" \n Starting POSTServer on " ));
146
- Serial.print (BOARD_NAME);
147
- Serial.print (F (" with " ));
148
- Serial.println (SHIELD_TYPE);
145
+ Serial.print (F (" \n Starting POSTServer on " )); Serial.print (BOARD_NAME);
146
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
149
147
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
150
148
151
149
// initialize serial for ESP module
Original file line number Diff line number Diff line change 363
363
364
364
#endif
365
365
366
- #define EspSerial Serial1
366
+ #define EspSerial Serial1
367
367
368
368
#elif (ESP_AT_USE_AVR )
369
369
389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -108,12 +108,10 @@ void printEncryptionType(int thisType)
108
108
void setup ()
109
109
{
110
110
Serial.begin (115200 );
111
- while (!Serial);
111
+ while (!Serial && millis () < 5000 );
112
112
113
- Serial.print (F (" \n Starting ScanNetworks on " ));
114
- Serial.print (BOARD_NAME);
115
- Serial.print (F (" with " ));
116
- Serial.println (SHIELD_TYPE);
113
+ Serial.print (F (" \n Starting ScanNetworks on " )); Serial.print (BOARD_NAME);
114
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
117
115
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
118
116
119
117
// initialize serial for ESP module
Original file line number Diff line number Diff line change 389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -181,19 +181,18 @@ void handleNotFound()
181
181
void setup ()
182
182
{
183
183
Serial.begin (115200 );
184
+ while (!Serial && millis () < 5000 );
185
+
186
+ Serial.print (F (" \n Starting SimpleAuthentication on " )); Serial.print (BOARD_NAME);
187
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
188
+ Serial.println (ESP8266_AT_WEBSERVER_VERSION);
184
189
185
190
// initialize serial for ESP module
186
191
EspSerial.begin (115200 );
187
192
188
193
// initialize ESP module
189
194
WiFi.init (&EspSerial);
190
195
191
- Serial.print (F (" \n Starting SimpleAuthentication on " ));
192
- Serial.print (BOARD_NAME);
193
- Serial.print (F (" with " ));
194
- Serial.println (SHIELD_TYPE);
195
- Serial.println (ESP8266_AT_WEBSERVER_VERSION);
196
-
197
196
// check for the presence of the shield
198
197
if (WiFi.status () == WL_NO_SHIELD)
199
198
{
Original file line number Diff line number Diff line change 363
363
364
364
#endif
365
365
366
- #define EspSerial Serial1
366
+ #define EspSerial Serial1
367
367
368
368
#elif (ESP_AT_USE_AVR )
369
369
389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -80,12 +80,10 @@ void sendNTPpacket(char *ntpSrv)
80
80
void setup ()
81
81
{
82
82
Serial.begin (115200 );
83
- while (!Serial);
83
+ while (!Serial && millis () < 5000 );
84
84
85
- Serial.print (F (" \n Starting UdpNTPClient on " ));
86
- Serial.print (BOARD_NAME);
87
- Serial.print (F (" with " ));
88
- Serial.println (SHIELD_TYPE);
85
+ Serial.print (F (" \n Starting UdpNTPClient on " )); Serial.print (BOARD_NAME);
86
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
89
87
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
90
88
91
89
// initialize serial for ESP module
Original file line number Diff line number Diff line change 363
363
364
364
#endif
365
365
366
- #define EspSerial Serial1
366
+ #define EspSerial Serial1
367
367
368
368
#elif (ESP_AT_USE_AVR )
369
369
389
389
390
390
#include <ESP8266_AT_WebServer.h>
391
391
392
- char ssid [] = "**** " ; // your network SSID (name)
393
- char pass [] = "**** " ; // your network password
392
+ char ssid [] = "YOUR_SSID " ; // your network SSID (name)
393
+ char pass [] = "12345678 " ; // your network password
394
394
395
395
#endif //defines_h
Original file line number Diff line number Diff line change @@ -63,15 +63,10 @@ void printWifiStatus()
63
63
void setup ()
64
64
{
65
65
Serial.begin (115200 );
66
+ while (!Serial && millis () < 5000 );
66
67
67
- // initialize serial for ESP module
68
- EspSerial.begin (115200 );
69
- while (!Serial);
70
-
71
- Serial.print (F (" \n Starting UDPSendReceive on " ));
72
- Serial.print (BOARD_NAME);
73
- Serial.print (F (" with " ));
74
- Serial.println (SHIELD_TYPE);
68
+ Serial.print (F (" \n Starting UDPSendReceive on " )); Serial.print (BOARD_NAME);
69
+ Serial.print (F (" with " )); Serial.println (SHIELD_TYPE);
75
70
Serial.println (ESP8266_AT_WEBSERVER_VERSION);
76
71
77
72
// initialize serial for ESP module
You can’t perform that action at this time.
0 commit comments