File tree Expand file tree Collapse file tree 6 files changed +13
-18
lines changed
libraries/WiFiS3/examples Expand file tree Collapse file tree 6 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,9 @@ class FifoBuffer
4141 }
4242 inline bool isEmpty () const { return (_numElems == 0 ); }
4343 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;
4847 public:
4948 /* ---------------------------------------------------------------------- */
5049 FifoBuffer ( void ) {
Original file line number Diff line number Diff line change 88 modified 31 May 2012
99 by Tom Igoe
1010 */
11- #include < WiFi .h>
11+ #include < WiFiS3 .h>
1212
1313#include " arduino_secrets.h"
1414// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
@@ -31,7 +31,7 @@ void setup() {
3131 }
3232
3333 String fv = WiFi.firmwareVersion ();
34- if (fv < WiFi_FIRMWARE_LATEST_VERSION ) {
34+ if (fv < WIFI_FIRMWARE_LATEST_VERSION ) {
3535 Serial.println (" Please upgrade the firmware" );
3636 }
3737
Original file line number Diff line number Diff line change 1919
2020void setup () {
2121 // Initialize serial and wait for port to open:
22- Serial.begin (115200 );
22+ Serial.begin (9600 );
2323 while (!Serial) {
2424 ; // wait for serial port to connect. Needed for native USB port only
2525 }
@@ -42,9 +42,6 @@ void loop() {
4242 // scan for existing networks:
4343 Serial.println (" Scanning available networks..." );
4444 listNetworks ();
45-
46-
47-
4845 WiFi.macAddress (mac);
4946 Serial.println ();
5047 Serial.print (" Your MAC Address is: " );
Original file line number Diff line number Diff line change 2020
2121void setup () {
2222 // Initialize serial and wait for port to open:
23- Serial.begin (115200 );
23+ Serial.begin (9600 );
2424 while (!Serial) {
2525 ; // wait for serial port to connect. Needed for native USB port only
2626 }
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ int status = WL_IDLE_STATUS;
3434WiFiServer server (80 );
3535
3636void setup () {
37- Serial.begin (115200 ); // initialize serial communication
37+ Serial.begin (9600 ); // initialize serial communication
3838 pinMode (led, OUTPUT); // set the LED pin mode
3939
4040 // check for the WiFi module:
@@ -65,7 +65,6 @@ void setup() {
6565
6666
6767void loop () {
68- delay (2000 );
6968 WiFiClient client = server.available (); // listen for incoming clients
7069
7170 if (client) { // if you get a client,
@@ -87,8 +86,8 @@ void loop() {
8786 client.println ();
8887
8988 // 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>" );
9291
9392 // The HTTP response ends with another blank line:
9493 client.println ();
Original file line number Diff line number Diff line change 2020 */
2121
2222
23- #include < WiFi.h>
24- #include < WiFiServer.h>
23+ #include < WiFiS3.h>
2524
2625#include " arduino_secrets.h"
2726// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
@@ -51,7 +50,7 @@ void setup() {
5150 }
5251
5352 String fv = WiFi.firmwareVersion ();
54- if (fv < WiFi_FIRMWARE_LATEST_VERSION ) {
53+ if (fv < WIFI_FIRMWARE_LATEST_VERSION ) {
5554 Serial.println (" Please upgrade the firmware" );
5655 }
5756
@@ -74,6 +73,7 @@ void setup() {
7473
7574
7675void loop () {
76+
7777 // wait for a new client:
7878 WiFiClient client = server.available ();
7979
You can’t perform that action at this time.
0 commit comments