update espMqttClient
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve espMqttClient
|
||||
title: "[BUG]"
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
#### Do not use to discuss topics!
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
Which platform, esp8266 or esp32?
|
||||
Do you use TLS or not?
|
||||
Do you use an IDE (Arduino, Platformio...)?
|
||||
Which version of the Arduino framework?
|
||||
|
||||
Please include any debug output and/or decoded stack trace if applicable.
|
||||
|
||||
**Expected behaviour**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behaviour:
|
||||
|
||||
**Example code**
|
||||
```cpp
|
||||
// Put code here to reproduce the bug, if possible
|
||||
```
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
2
lib/espMqttClient/.github/etc/mosquitto.conf
vendored
2
lib/espMqttClient/.github/etc/mosquitto.conf
vendored
@@ -1,2 +0,0 @@
|
||||
listener 1883
|
||||
allow_anonymous true
|
||||
@@ -1,9 +0,0 @@
|
||||
name: Arduino Lint
|
||||
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: arduino/arduino-lint-action@v1
|
||||
@@ -1,62 +0,0 @@
|
||||
name: Build with Arduino IDE
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build-for-esp8266:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
fqbn:
|
||||
- esp8266:esp8266:generic
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fqbn: ${{ matrix.fqbn }}
|
||||
enable-deltas-report: true
|
||||
platforms: |
|
||||
- name: esp8266:esp8266
|
||||
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
|
||||
sketch-paths: |
|
||||
- examples/largepayload-esp8266
|
||||
- examples/simple-esp8266
|
||||
- examples/simpleAsync-esp8266
|
||||
- examples/tls-esp8266
|
||||
libraries: |
|
||||
- name: espMqttClient
|
||||
source-path: ./
|
||||
- name: ESPAsyncTCP
|
||||
source-url: https://github.com/me-no-dev/ESPAsyncTCP.git
|
||||
|
||||
build-for-esp32:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
fqbn:
|
||||
- esp32:esp32:esp32
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fqbn: ${{ matrix.fqbn }}
|
||||
enable-deltas-report: true
|
||||
platforms: |
|
||||
- name: esp32:esp32
|
||||
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
|
||||
sketch-paths: |
|
||||
- examples/simple-esp32
|
||||
- examples/simpleAsync-esp32
|
||||
- examples/tls-esp32
|
||||
libraries: |
|
||||
- name: espMqttClient
|
||||
source-path: ./
|
||||
- name: AsyncTCP
|
||||
source-url: https://github.com/me-no-dev/AsyncTCP.git
|
||||
@@ -1,90 +0,0 @@
|
||||
name: Build with Platformio
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build-for-esp8266:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
example: [
|
||||
examples/largepayload-esp8266/largepayload-esp8266.ino,
|
||||
examples/ota-esp8266/ota-esp8266.ino,
|
||||
examples/simple-esp8266/simple-esp8266.ino,
|
||||
examples/simpleAsync-esp8266/simpleAsync-esp8266.ino,
|
||||
examples/tls-esp8266/tls-esp8266.ino
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9'
|
||||
- name: Install PlatformIO Core
|
||||
run: pip install --upgrade platformio
|
||||
- name: Download external libraries
|
||||
run: pio pkg install --global --library me-no-dev/ESPAsyncTCP
|
||||
- name: Build PlatformIO examples
|
||||
run: pio ci --lib="." --board=d1_mini
|
||||
env:
|
||||
PLATFORMIO_CI_SRC: ${{ matrix.example }}
|
||||
|
||||
build-for-esp32:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
example: [
|
||||
examples/notask-esp32/notask-esp32.ino,
|
||||
examples/simple-esp32/simple-esp32.ino,
|
||||
examples/simpleAsync-esp32/simpleAsync-esp32.ino,
|
||||
examples/tls-esp32/tls-esp32.ino
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9'
|
||||
- name: Install PlatformIO Core
|
||||
run: pip install --upgrade platformio
|
||||
- name: Download external libraries
|
||||
run: pio pkg install --global --library me-no-dev/AsyncTCP
|
||||
- name: Build PlatformIO examples
|
||||
run: pio ci --lib="." --board=lolin32
|
||||
env:
|
||||
PLATFORMIO_CI_SRC: ${{ matrix.example }}
|
||||
|
||||
build-for-linux:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
example: [
|
||||
examples/simple-linux/main.cpp
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9'
|
||||
- name: Install PlatformIO Core
|
||||
run: pip install --upgrade platformio
|
||||
- name: Build PlatformIO examples
|
||||
run: pio ci --lib="." --project-conf="./examples/simple-linux/platformio.ini"
|
||||
env:
|
||||
PLATFORMIO_CI_SRC: ${{ matrix.example }}
|
||||
22
lib/espMqttClient/.github/workflows/cppcheck.yml
vendored
22
lib/espMqttClient/.github/workflows/cppcheck.yml
vendored
@@ -1,22 +0,0 @@
|
||||
name: Cppcheck
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install platformio
|
||||
- name: Cppcheck
|
||||
run: |
|
||||
pio check --fail-on-defect=medium --fail-on-defect=high --flags "--inline-suppr --enable=warning --enable=style --enable=performance --suppress=unusedFunction --suppress=preprocessorErrorDirective" --skip-packages
|
||||
22
lib/espMqttClient/.github/workflows/cpplint.yml
vendored
22
lib/espMqttClient/.github/workflows/cpplint.yml
vendored
@@ -1,22 +0,0 @@
|
||||
name: cpplint
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install cpplint
|
||||
- name: Linting
|
||||
run: |
|
||||
cpplint --repository=. --recursive --filter=-whitespace/line_length,-build/include ./src
|
||||
@@ -1,29 +0,0 @@
|
||||
name: Test with Platformio
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt update && sudo apt install -y valgrind
|
||||
python -m pip install --upgrade pip
|
||||
pip install platformio
|
||||
- name: Start Mosquitto
|
||||
uses: namoshek/mosquitto-github-action@v1
|
||||
with:
|
||||
version: '2.0'
|
||||
ports: '1883:1883'
|
||||
config: ${{ github.workspace }}/.github/etc/mosquitto.conf
|
||||
- name: Test
|
||||
run: |
|
||||
pio test -e native -v
|
||||
Reference in New Issue
Block a user