File tree 6 files changed +13
-18
lines changed
libraries/WiFiS3/examples
6 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,9 @@ class FifoBuffer
41
41
}
42
42
inline bool isEmpty () const { return (_numElems == 0 ); }
43
43
T _aucBuffer[size] ;
44
- volatile uint32_t _iHead ;
45
- volatile uint32_t _iTail ;
46
- volatile uint32_t _numElems;
47
-
44
+ uint32_t _iHead ;
45
+ uint32_t _iTail ;
46
+ uint32_t _numElems;
48
47
public:
49
48
/* ---------------------------------------------------------------------- */
50
49
FifoBuffer ( void ) {
Original file line number Diff line number Diff line change 8
8
modified 31 May 2012
9
9
by Tom Igoe
10
10
*/
11
- #include < WiFi .h>
11
+ #include < WiFiS3 .h>
12
12
13
13
#include " arduino_secrets.h"
14
14
// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
@@ -31,7 +31,7 @@ void setup() {
31
31
}
32
32
33
33
String fv = WiFi.firmwareVersion ();
34
- if (fv < WiFi_FIRMWARE_LATEST_VERSION ) {
34
+ if (fv < WIFI_FIRMWARE_LATEST_VERSION ) {
35
35
Serial.println (" Please upgrade the firmware" );
36
36
}
37
37
Original file line number Diff line number Diff line change 19
19
20
20
void setup () {
21
21
// Initialize serial and wait for port to open:
22
- Serial.begin (115200 );
22
+ Serial.begin (9600 );
23
23
while (!Serial) {
24
24
; // wait for serial port to connect. Needed for native USB port only
25
25
}
@@ -42,9 +42,6 @@ void loop() {
42
42
// scan for existing networks:
43
43
Serial.println (" Scanning available networks..." );
44
44
listNetworks ();
45
-
46
-
47
-
48
45
WiFi.macAddress (mac);
49
46
Serial.println ();
50
47
Serial.print (" Your MAC Address is: " );
Original file line number Diff line number Diff line change 20
20
21
21
void setup () {
22
22
// Initialize serial and wait for port to open:
23
- Serial.begin (115200 );
23
+ Serial.begin (9600 );
24
24
while (!Serial) {
25
25
; // wait for serial port to connect. Needed for native USB port only
26
26
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ int status = WL_IDLE_STATUS;
34
34
WiFiServer server (80 );
35
35
36
36
void setup () {
37
- Serial.begin (115200 ); // initialize serial communication
37
+ Serial.begin (9600 ); // initialize serial communication
38
38
pinMode (led, OUTPUT); // set the LED pin mode
39
39
40
40
// check for the WiFi module:
@@ -65,7 +65,6 @@ void setup() {
65
65
66
66
67
67
void loop () {
68
- delay (2000 );
69
68
WiFiClient client = server.available (); // listen for incoming clients
70
69
71
70
if (client) { // if you get a client,
@@ -87,8 +86,8 @@ void loop() {
87
86
client.println ();
88
87
89
88
// the content of the HTTP response follows the header:
90
- client.print (" <p style=\" font-size:7vw;\" >Click <a href=\" /H\" >here</a> turn the LED off <br></p>" );
91
- client.print (" <p style=\" font-size:7vw;\" >Click <a href=\" /L\" >here</a> turn the LED on <br></p>" );
89
+ client.print (" <p style=\" font-size:7vw;\" >Click <a href=\" /H\" >here</a> turn the LED on <br></p>" );
90
+ client.print (" <p style=\" font-size:7vw;\" >Click <a href=\" /L\" >here</a> turn the LED off <br></p>" );
92
91
93
92
// The HTTP response ends with another blank line:
94
93
client.println ();
Original file line number Diff line number Diff line change 20
20
*/
21
21
22
22
23
- #include < WiFi.h>
24
- #include < WiFiServer.h>
23
+ #include < WiFiS3.h>
25
24
26
25
#include " arduino_secrets.h"
27
26
// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
@@ -51,7 +50,7 @@ void setup() {
51
50
}
52
51
53
52
String fv = WiFi.firmwareVersion ();
54
- if (fv < WiFi_FIRMWARE_LATEST_VERSION ) {
53
+ if (fv < WIFI_FIRMWARE_LATEST_VERSION ) {
55
54
Serial.println (" Please upgrade the firmware" );
56
55
}
57
56
@@ -74,6 +73,7 @@ void setup() {
74
73
75
74
76
75
void loop () {
76
+
77
77
// wait for a new client:
78
78
WiFiClient client = server.available ();
79
79
You can’t perform that action at this time.
0 commit comments