Skip to content

Commit 2b7d639

Browse files
maidnlfacchinm
authored andcommitted
WiFiS3: update examples
1 parent d7be72e commit 2b7d639

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

libraries/WiFiS3/examples/ConnectWithWPA/ConnectWithWPA.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void printWifiData() {
6363
// print your board's IP address:
6464
IPAddress ip = WiFi.localIP();
6565
Serial.print("IP Address: ");
66-
Serial.println(ip);
66+
6767
Serial.println(ip);
6868

6969
// print your MAC address:

libraries/WiFiS3/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ WiFiUDP Udp;
4040

4141
void setup() {
4242
// Open serial communications and wait for port to open:
43-
Serial.begin(115200);
43+
Serial.begin(9600);
4444
while (!Serial) {
4545
; // wait for serial port to connect. Needed for native USB port only
4646
}

libraries/WiFiS3/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int keyIndex = 0; // your network key index number (needed only for W
2222
unsigned int localPort = 2390; // local port to listen on
2323

2424
char packetBuffer[256]; //buffer to hold incoming packet
25-
char ReplyBuffer[] = "acknowledged"; // a string to send back
25+
char ReplyBuffer[] = "acknowledged\n"; // a string to send back
2626

2727
WiFiUDP Udp;
2828

libraries/WiFiS3/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ char server[] = "example.org";
3333
//IPAddress server(64,131,82,241);
3434

3535
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
36-
const unsigned long postingInterval = 10L * 200L; // delay between updates, in milliseconds
36+
const unsigned long postingInterval = 10L * 1000L; // delay between updates, in milliseconds
3737

3838
/* -------------------------------------------------------------------------- */
3939
void setup() {
@@ -80,11 +80,11 @@ void read_request() {
8080
/* actual data reception */
8181
char c = client.read();
8282
/* print data to serial port */
83-
//Serial.print(c);
83+
Serial.print(c);
8484
/* wrap data to 80 columns*/
8585
received_data_num++;
8686
if(received_data_num % 80 == 0) {
87-
Serial.print('.');
87+
8888
}
8989

9090
}

libraries/WiFiS3/examples/WiFiWebServer/WiFiWebServer.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
1717
*/
1818

19-
#include "WiFi.h"
20-
#include "WiFiServer.h"
19+
#include "WiFiS3.h"
20+
2121

2222

2323
#include "arduino_secrets.h"
@@ -45,7 +45,7 @@ void setup() {
4545
}
4646

4747
String fv = WiFi.firmwareVersion();
48-
if (fv < WiFi_FIRMWARE_LATEST_VERSION) {
48+
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
4949
Serial.println("Please upgrade the firmware");
5050
}
5151

0 commit comments

Comments
 (0)