Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use GitHub Actions for continuous integration#102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aentinger merged 6 commits intomasterfromci
Apr 14, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions.codespellrc
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
# See: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = ,
check-filenames =
check-hidden =
skip = ./.git
10 changes: 10 additions & 0 deletions.github/dependabot.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
# See: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#about-the-dependabotyml-file
version:2

updates:
# Configure check for outdated GitHub Actions actions in workflows.
# See: https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
-package-ecosystem:github-actions
directory: /# Check the repository's workflows under /.github/workflows/
schedule:
interval:daily
28 changes: 28 additions & 0 deletions.github/workflows/check-arduino.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
name:Check Arduino

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
pull_request:
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by new rules added to Arduino Lint.
-cron:"0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
lint:
runs-on:ubuntu-latest

steps:
-name:Checkout repository
uses:actions/checkout@v2

-name:Arduino Lint
uses:arduino/arduino-lint-action@v1
with:
compliance:specification
library-manager:update
# Always use this setting for official repositories. Remove for 3rd party projects.
official:true
project-type:library
62 changes: 62 additions & 0 deletions.github/workflows/compile-examples.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
name: Compile Examples

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
build:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest

env:
SKETCHES_REPORTS_PATH: sketches-reports

strategy:
fail-fast: false

matrix:
board:
- fqbn: arduino:samd:mkr1000
platforms: |
- name: arduino:samd

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Compile examples
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.board.platforms }}
libraries: |
# Install the library from the local path.
- source-path: ./
- name: WiFi101
sketch-paths: |
- examples
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

- name: Save sketches report as workflow artifact
uses: actions/upload-artifact@v2
with:
if-no-files-found: error
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: ${{ env.SKETCHES_REPORTS_PATH }}
24 changes: 24 additions & 0 deletions.github/workflows/report-size-deltas.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
name: Report Size Deltas

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/report-size-deltas.yml"
schedule:
# Run at the minimum interval allowed by GitHub Actions.
# Note: GitHub Actions periodically has outages which result in workflow failures.
# In this event, the workflows will start passing again once the service recovers.
- cron: "*/5 * * * *"
workflow_dispatch:
repository_dispatch:

jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Comment size deltas reports to PRs
uses: arduino/report-size-deltas@v1
with:
# The name of the workflow artifact created by the sketch compilation workflow
sketches-reports-source: sketches-reports
22 changes: 22 additions & 0 deletions.github/workflows/spell-check.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
name:Spell Check

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
pull_request:
schedule:
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
-cron:"0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
spellcheck:
runs-on:ubuntu-latest

steps:
-name:Checkout repository
uses:actions/checkout@v2

-name:Spell check
uses:codespell-project/actions-codespell@master
2 changes: 1 addition & 1 deletionCHANGELOG.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@
## ArduinoHttpClient 0.3.1 - 2017.09.25

* Changed examples to support Arduino Create secret tabs
* Increase WebSocketsecrect-key length to 24 characters
* Increase WebSocketsecret-key length to 24 characters

## ArduinoHttpClient 0.3.0 - 2017.04.20

Expand Down
4 changes: 4 additions & 0 deletionsREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
# ArduinoHttpClient

[![Check Arduino status](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/check-arduino.yml)
[![Compile Examples status](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/compile-examples.yml)
[![Spell Check status](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/spell-check.yml)

ArduinoHttpClient is a library to make it easier to interact with web servers from Arduino.

Derived from [Adrian McEwen's HttpClient library](https://github.com/amcewen/HttpClient)
Expand Down
2 changes: 1 addition & 1 deletionexamples/BasicAuthGet/BasicAuthGet.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,7 +15,7 @@
#include <WiFi101.h>
#include "arduino_secrets.h"
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
2 changes: 1 addition & 1 deletionexamples/CustomHeader/CustomHeader.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,7 +15,7 @@

#include "arduino_secrets.h"
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
2 changes: 1 addition & 1 deletionexamples/DweetGet/DweetGet.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,7 +20,7 @@

#include "arduino_secrets.h"
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
2 changes: 1 addition & 1 deletionexamples/DweetPost/DweetPost.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,7 +16,7 @@

#include "arduino_secrets.h"
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
12 changes: 6 additions & 6 deletionsexamples/HueBlink/HueBlink.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,7 @@
The body of the PUT request looks like this:
{"on": true} or {"on":false}
This exampleshows how to concatenate Strings to assemble the
This example shows how to concatenate Strings to assemble the
PUT request and the body of the request.
modified 15 Feb 2016
Expand All@@ -23,16 +23,16 @@
#include"arduino_secrets.h"

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

int status = WL_IDLE_STATUS;// theWifi radio's status
int status = WL_IDLE_STATUS;// theWiFi radio's status

char hueHubIP[] ="192.168.0.3";// IP address of the HUE bridge
String hueUserName ="huebridgeusername";// hue bridge username

// make awifi instance and a HttpClient instance:
// make aWiFiClient instance and a HttpClient instance:
WiFiClient wifi;
HttpClient httpClient = HttpClient(wifi, hueHubIP);

Expand All@@ -42,7 +42,7 @@ void setup() {
Serial.begin(9600);
while (!Serial);// wait for serial port to connect.

// attempt to connect toWifi network:
// attempt to connect toWiFi network:
while ( status != WL_CONNECTED) {
Serial.print("Attempting to connect to WPA SSID:");
Serial.println(ssid);
Expand DownExpand Up@@ -95,4 +95,4 @@ void sendRequest(int light, String cmd, String value) {
Serial.print("Server response:");
Serial.println(response);
Serial.println();
}
}
4 changes: 2 additions & 2 deletionsexamples/PostWithHeaders/PostWithHeaders.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
/*
POST with headers client for ArduinoHttpClient library
Connects to server once every five seconds, sends a POST request
withcustome headers and a request body
withcustom headers and a request body

created 14 Feb 2016
by Tom Igoe
Expand All@@ -18,7 +18,7 @@
#include "arduino_secrets.h"

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
2 changes: 1 addition & 1 deletionexamples/SimpleDelete/SimpleDelete.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,7 +15,7 @@
#include "arduino_secrets.h"

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
2 changes: 1 addition & 1 deletionexamples/SimpleGet/SimpleGet.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,7 +14,7 @@
#include "arduino_secrets.h"

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
8 changes: 3 additions & 5 deletionsexamples/SimpleHttpExample/SimpleHttpExample.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@
// Released under Apache License, version 2.0
//
// Simple example to show how to use the HttpClient library
//Get's the web page given at http://<kHostname><kPath> and
//Gets the web page given at http://<kHostname><kPath> and
// outputs the content to the serial port

#include <SPI.h>
Expand All@@ -14,7 +14,7 @@
#include "arduino_secrets.h"

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand DownExpand Up@@ -42,7 +42,7 @@ void setup()
; // wait for serial port to connect. Needed for native USB port only
}

// attempt to connect toWifi network:
// attempt to connect toWiFi network:
Serial.print("Attempting to connect to WPA SSID: ");
Serial.println(ssid);
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
Expand DownExpand Up@@ -129,5 +129,3 @@ void loop()
// And just stop, now that we've tried a download
while(1);
}


2 changes: 1 addition & 1 deletionexamples/SimplePost/SimplePost.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,7 +14,7 @@
#include "arduino_secrets.h"

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
2 changes: 1 addition & 1 deletionexamples/SimplePut/SimplePut.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,7 +14,7 @@
#include "arduino_secrets.h"

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
2 changes: 1 addition & 1 deletionexamples/SimpleWebSocket/SimpleWebSocket.ino
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,7 +15,7 @@
#include "arduino_secrets.h"

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
///////Wifi Settings ///////
///////WiFi Settings ///////
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;

Expand Down
2 changes: 1 addition & 1 deletionkeywords.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
#######################################
# Syntax Coloring Map ForHttpClient
# Syntax Coloring Map ForArduinoHttpClient
#######################################

#######################################
Expand Down
2 changes: 1 addition & 1 deletionlibrary.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
{
"name": "ArduinoHttpClient",
"keywords": "http, web, client, ethernet, wifi, GSM",
"description": "Easily interact with web servers from Arduino, using HTTP andWebSocket's.",
"description": "Easily interact with web servers from Arduino, using HTTP andWebSockets.",
"repository":
{
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletionlibrary.properties
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@ name=ArduinoHttpClient
version=0.4.0
author=Arduino
maintainer=Arduino <info@arduino.cc>
sentence=[EXPERIMENTAL] Easily interact with web servers from Arduino, using HTTP andWebSocket's.
sentence=[EXPERIMENTAL] Easily interact with web servers from Arduino, using HTTP andWebSockets.
paragraph=This library can be used for HTTP (GET, POST, PUT, DELETE) requests to a web server. It also supports exchanging messages with WebSocket servers. Based on Adrian McEwen's HttpClient library.
category=Communication
url=https://github.com/arduino-libraries/ArduinoHttpClient
Expand Down
4 changes: 2 additions & 2 deletionssrc/HttpClient.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -587,7 +587,7 @@ String HttpClient::responseBody()
}

if (bodyLength > 0 && (unsigned int)bodyLength != response.length()) {
// failure, we did not read inreponse content length bytes
// failure, we did not read inresponse content length bytes
return String((const char*)NULL);
}

Expand DownExpand Up@@ -685,7 +685,7 @@ int HttpClient::read()

bool HttpClient::headerAvailable()
{
// clear the currentlystore header line
// clear the currentlystored header line
iHeaderLine = "";

while (!endOfHeadersReached())
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp