Skip to content

Commit 95e4c07

Browse files
authored
Merge pull request #299 from per1234/github-actions
Use GitHub Actions for CI
2 parents 0cbee7f + 77c1b9b commit 95e4c07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+244
-201
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Compile Examples
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/compile-examples.yml"
7+
- "examples/**"
8+
- "src/**"
9+
push:
10+
paths:
11+
- ".github/workflows/compile-examples.yml"
12+
- "examples/**"
13+
- "src/**"
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
env:
20+
# sketch paths to compile (recursive) for all boards
21+
UNIVERSAL_SKETCH_PATHS: |
22+
- examples/AP_SimpleWebServer
23+
- examples/CheckWifi101FirmwareVersion
24+
- examples/ConnectNoEncryption
25+
- examples/ConnectWithWEP
26+
- examples/ConnectWithWPA
27+
- examples/MDNS_WiFiWebServer
28+
- examples/Provisioning_WiFiWebServer
29+
- examples/ScanNetworks
30+
- examples/ScanNetworksAdvanced
31+
- examples/SimpleWebServerWiFi
32+
- examples/WiFiChatServer
33+
- examples/WiFiPing
34+
- examples/WiFiSSLClient
35+
- examples/WiFiUdpNtpClient
36+
- examples/WiFiUdpSendReceiveString
37+
- examples/WiFiWebClient
38+
- examples/WiFiWebClientRepeating
39+
- examples/WiFiWebServer
40+
SKETCHES_REPORTS_PATH: sketches-reports
41+
42+
strategy:
43+
fail-fast: false
44+
45+
matrix:
46+
board:
47+
- fqbn: arduino:avr:uno
48+
firmwareUpdaterSupport: false
49+
- fqbn: arduino:avr:mega
50+
firmwareUpdaterSupport: false
51+
- fqbn: arduino:sam:arduino_due_x_dbg
52+
firmwareUpdaterSupport: true
53+
- fqbn: arduino:samd:arduino_zero_edbg
54+
firmwareUpdaterSupport: true
55+
- fqbn: arduino:samd:mkr1000
56+
firmwareUpdaterSupport: true
57+
- fqbn: Intel:arc32:arduino_101
58+
firmwareUpdaterSupport: true
59+
60+
# make board type-specific customizations to the matrix jobs
61+
include:
62+
- board:
63+
firmwareUpdaterSupport: true
64+
firmwareUpdater-sketch-paths: |
65+
- examples/FirmwareUpdater
66+
- board:
67+
firmwareUpdaterSupport: false
68+
firmwareUpdater-sketch-paths: ""
69+
70+
steps:
71+
- name: Checkout
72+
uses: actions/checkout@v2
73+
74+
- name: Compile examples
75+
uses: arduino/compile-sketches@main
76+
with:
77+
fqbn: ${{ matrix.board.fqbn }}
78+
libraries: |
79+
# Install the WiFi101 library from the local path
80+
- source-path: ./
81+
sketch-paths: |
82+
${{ env.UNIVERSAL_SKETCH_PATHS }}
83+
${{ matrix.firmwareUpdater-sketch-paths }}
84+
enable-deltas-report: true
85+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
86+
87+
- name: Save memory usage change report as artifact
88+
uses: actions/upload-artifact@v2
89+
with:
90+
name: ${{ env.SKETCHES_REPORTS_PATH }}
91+
path: ${{ env.SKETCHES_REPORTS_PATH }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
schedule:
3+
- cron: '*/5 * * * *'
4+
5+
jobs:
6+
report:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Comment size deltas reports to PRs
11+
uses: arduino/report-size-deltas@main
12+
with:
13+
# The name of the workflow artifact created by the "Compile Examples" workflow
14+
sketches-reports-source: sketches-reports

.github/workflows/spell-check.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Spell Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
schedule:
7+
# run every Tuesday at 3 AM UTC
8+
- cron: "0 3 * * 2"
9+
10+
jobs:
11+
spellcheck:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
# See: https://github.com/codespell-project/actions-codespell/blob/master/README.md
19+
- name: Spell check
20+
uses: codespell-project/actions-codespell@master
21+
with:
22+
check_filenames: true
23+
check_hidden: true
24+
# In the event of a false positive, add the word in all lower case to this file:
25+
ignore_words_file: extras/codespell-ignore-words-list.txt
26+
skip: ./.git,./src/bsp,./src/bus_wrapper,./src/common,./src/driver,./src/socket,./src/spi_flash

.travis.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

CHANGELOG

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ WiFi101 ?.?.? - ????.??.??
33
WiFi101 0.16.0 - 2018.04.04
44

55
* Added WiFi.setTimeout(timeout) API to set timeout of WiFi.begin(...)
6-
* Changed check firmware version comparision from == to >=
6+
* Changed check firmware version comparison from == to >=
77
* Updated latest firmware version for model B to 19.6.1
88

99
WiFi101 0.15.3 - 2018.11.21
1010

1111
* Fixed unreachable destination issue in UDP packet transmission
12-
* Changed where required, in library's examples, the server's URL arduino.cc\80 in example.org\80, because http://arduino.cc will be no longer available
13-
* Changed the MAC address print in the library's example now are showed corectly all the MAC address chars
14-
* Fixed WiFiUDP::endPacket() return value in accord with sendig returns. Thanks to @mjlitke @jrowberg
12+
* Changed where required, in library's examples, the server's URL arduino.cc\80 to example.org\80, because http://arduino.cc will be no longer available
13+
* Changed the MAC address print in the library's example now are showed correctly all the MAC address chars
14+
* Fixed WiFiUDP::endPacket() return value in accord with sending returns. Thanks to @mjlitke @jrowberg
1515
* Changed WiFiSocketClass::create(...) return condition. Thanks to @jrowberg
1616
* Changed server and URL to avoid 301 response from Server
1717
* Fixed initialization Server issue by adding socket initialization in WiFiServer::WiFiServer constructor
@@ -45,7 +45,7 @@ WiFi101 0.14.2 - 2017.05.08
4545
WiFi101 0.14.1 - 2017.04.20
4646

4747
* Fixed issues with WiFiMDNSResponder and Windows using Bonjour
48-
* Correct cast of buffer size when processing received data
48+
* Correct cast of buffer size when processing received data
4949

5050
WiFi101 0.14.0 - 2017.03.22
5151

@@ -69,7 +69,7 @@ WiFi101 0.12.0 - 2017.01.05
6969
* Fixed WiFi.getTime() not returning 0, if time has not been synced via NTP
7070
* Fixed crashing when connecting after scanning
7171
* Fixed WiFiServer::available() returning valid client on outbound client connection
72-
* Added WiFiUdp::beginMulticast(port) function for compatiblity with EthernetUdp, as beginMulti was inconsistent
72+
* Added WiFiUdp::beginMulticast(port) function for compatibility with EthernetUdp, as beginMulti was inconsistent
7373

7474
WiFi101 0.11.2 - 2016.12.15
7575

@@ -93,7 +93,7 @@ WiFi101 0.10.0 - 2016.09.08
9393

9494
* Added WiFi.end() to disconnect from the AP or end AP mode
9595
* Added new WiFi.ping(...) functionality. Thanks @PKGeorgiev
96-
* Added WiFi.setPins(...) to customize the CS, INTN, RESET and CHIPEN pins
96+
* Added WiFi.setPins(...) to customize the CS, INTN, RESET and CHIPEN pins
9797
* Add new WL_AP_LISTENING, WL_AP_CONNECTED, and WL_AP_FAILED status types for AP mode
9898
* Fixed return value of WiFiUDP::beginPacket(host, port) when host is successfully resolved
9999
* Added power management methods: WiFi.lowPowerMode(), WiFi.maxLowPowerMode(), WiFi.noLowPowerMode()
@@ -128,7 +128,7 @@ WiFi101 0.8.0 - 2016.02.15
128128
WiFi101 0.7.0 - 2015.01.11
129129

130130
* Added support for WiFi Firmware 19.4.4
131-
* WiFi.hostByName(...) will not try resolve the domain name if it's already a numeric IP
131+
* WiFi.hostByName(...) will not try to resolve the domain name if it's already a numeric IP
132132
* Fixed manual IP configuration (no DHCP)
133133
* Fixed WiFiServer.available(), now follows API specification
134134
* Fixed WEP key connection
@@ -140,7 +140,7 @@ WiFi101 0.6.0 - 2015.11.27
140140

141141
* Fixed bug with AVR boards when Web Server is used
142142
* Fixed UDP read bug on AVR Boards
143-
* Added missing inlcude for SSL Client
143+
* Added missing include for SSL Client
144144
* Fixed peek() function
145145
* Fixed some examples
146146

README.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
= WiFi library for the Arduino WiFi Shield 101 and MKR1000 board =
1+
// Define the repository information in these attributes
2+
:repository-owner: arduino-libraries
3+
:repository-name: WiFi101
24

3-
image:https://travis-ci.org/arduino-libraries/WiFi101.svg?branch=master["Build Status", link="https://travis-ci.org/arduino-libraries/WiFi101"]
5+
= {repository-name} library for for the Arduino WiFi Shield 101 and MKR1000 board =
6+
7+
image:https://github.com/{repository-owner}/{repository-name}/workflows/Compile%20Examples/badge.svg["Compile Examples Status", link="https://github.com/{repository-owner}/{repository-name}/actions?workflow=Compile+Examples"]
8+
image:https://github.com/{repository-owner}/{repository-name}/workflows/Spell%20Check/badge.svg["Spell Check Status", link="https://github.com/{repository-owner}/{repository-name}/actions?workflow=Spell+Check"]
49

510
This library implements a network driver for devices based
611
on the ATMEL WINC1500 WiFi module.
712

813
For more information about this library please visit us at
9-
https://www.arduino.cc/en/Reference/WiFi101
14+
https://www.arduino.cc/en/Reference/{repository-name}
1015

1116
== License ==
1217

examples/AP_SimpleWebServer/AP_SimpleWebServer.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void setup() {
4141

4242
// check for the presence of the shield:
4343
if (WiFi.status() == WL_NO_SHIELD) {
44-
Serial.println("WiFi shield not present");
44+
Serial.println("WiFi 101 Shield not present");
4545
// don't continue
4646
while (true);
4747
}
@@ -54,7 +54,7 @@ void setup() {
5454
Serial.print("Creating access point named: ");
5555
Serial.println(ssid);
5656

57-
// Create open network. Change this line if you want to create an WEP network:
57+
// Create open network. Change this line if you want to create a WEP network:
5858
status = WiFi.beginAP(ssid);
5959
if (status != WL_AP_LISTENING) {
6060
Serial.println("Creating access point failed");
@@ -76,7 +76,7 @@ void setup() {
7676
void loop() {
7777
// compare the previous status to the current status
7878
if (status != WiFi.status()) {
79-
// it has changed update the variable
79+
// it has changed, so update the variable
8080
status = WiFi.status();
8181

8282
if (status == WL_AP_CONNECTED) {
@@ -98,7 +98,7 @@ void loop() {
9898
Serial.println("new client"); // print a message out the serial port
9999
String currentLine = ""; // make a String to hold incoming data from the client
100100
while (client.connected()) { // loop while the client's connected
101-
if (client.available()) { // if there's bytes to read from the client,
101+
if (client.available()) { // if there are bytes to read from the client,
102102
char c = client.read(); // read a byte, then
103103
Serial.write(c); // print it out the serial monitor
104104
if (c == '\n') { // if the byte is a newline character
@@ -149,7 +149,7 @@ void printWiFiStatus() {
149149
Serial.print("SSID: ");
150150
Serial.println(WiFi.SSID());
151151

152-
// print your WiFi shield's IP address:
152+
// print your WiFi 101 Shield's IP address:
153153
IPAddress ip = WiFi.localIP();
154154
Serial.print("IP Address: ");
155155
Serial.println(ip);
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#define SECRET_SSID ""
22
#define SECRET_PASS ""
3-

examples/CheckWifi101FirmwareVersion/CheckWifi101FirmwareVersion.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
* This example check if the firmware loaded on the WiFi101
2+
* This example checks if the firmware loaded on the WiFi101
33
* shield is updated.
44
*
55
* Circuit:
6-
* - WiFi101 Shield attached
6+
* - WiFi 101 Shield attached
77
*
88
* Created 29 July 2015 by Cristian Maglie
99
* This code is in the public domain.
@@ -24,7 +24,7 @@ void setup() {
2424
Serial.println();
2525

2626
// Check for the presence of the shield
27-
Serial.print("WiFi101 shield: ");
27+
Serial.print("WiFi 101 Shield: ");
2828
if (WiFi.status() == WL_NO_SHIELD) {
2929
Serial.println("NOT PRESENT");
3030
return; // don't continue
@@ -55,7 +55,7 @@ void setup() {
5555
Serial.println("Check result: PASSED");
5656
} else {
5757
Serial.println("Check result: NOT PASSED");
58-
Serial.println(" - The firmware version on the shield do not match the");
58+
Serial.println(" - The firmware version on the shield does not match the");
5959
Serial.println(" version required by the library, you may experience");
6060
Serial.println(" issues or failures.");
6161
}
@@ -64,4 +64,3 @@ void setup() {
6464
void loop() {
6565
// do nothing
6666
}
67-

examples/ConnectNoEncryption/ConnectNoEncryption.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
22
33
This example connects to an unencrypted WiFi network.
4-
Then it prints the MAC address of the WiFi shield,
4+
Then it prints the MAC address of the WiFi 101 Shield,
55
the IP address obtained, and other network details.
66
77
Circuit:
8-
* WiFi shield attached
8+
* WiFi 101 Shield attached
99
1010
created 13 July 2010
1111
by dlf (Metodo2 srl)
@@ -28,7 +28,7 @@ void setup() {
2828

2929
// check for the presence of the shield:
3030
if (WiFi.status() == WL_NO_SHIELD) {
31-
Serial.println("WiFi shield not present");
31+
Serial.println("WiFi 101 Shield not present");
3232
// don't continue:
3333
while (true);
3434
}
@@ -56,7 +56,7 @@ void loop() {
5656
}
5757

5858
void printWiFiData() {
59-
// print your WiFi shield's IP address:
59+
// print your WiFi 101 Shield's IP address:
6060
IPAddress ip = WiFi.localIP();
6161
Serial.print("IP Address: ");
6262
Serial.println(ip);

0 commit comments

Comments
 (0)