-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #516 from david-cermak/feat/wifi_remote
New component `esp_wifi_remote`
- Loading branch information
Showing
45 changed files
with
5,257 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: "esp_wifi_remote: build-tests" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled] | ||
|
||
jobs: | ||
wifi_remote_api_compat: | ||
if: contains(github.event.pull_request.labels.*.name, 'wifi_remote') || github.event_name == 'push' | ||
name: Check API compatibility of WiFi Remote | ||
strategy: | ||
matrix: | ||
idf_ver: ["latest"] | ||
runs-on: ubuntu-20.04 | ||
container: espressif/idf:${{ matrix.idf_ver }} | ||
steps: | ||
- name: Checkout esp-protocols | ||
uses: actions/checkout@v3 | ||
- name: Check that headers are the same as generated | ||
shell: bash | ||
run: | | ||
${IDF_PATH}/install.sh --enable-pytest | ||
. ${IDF_PATH}/export.sh | ||
cd ./components/esp_wifi_remote/scripts | ||
python generate_and_check.py | ||
build_wifi_remote: | ||
if: contains(github.event.pull_request.labels.*.name, 'wifi_remote') || github.event_name == 'push' | ||
name: Build WiFi Remote | ||
strategy: | ||
matrix: | ||
idf_ver: ["latest"] | ||
test: [ { app: smoke_test, path: "test/smoke_test" }] | ||
runs-on: ubuntu-20.04 | ||
container: espressif/idf:${{ matrix.idf_ver }} | ||
steps: | ||
- name: Checkout esp-protocols | ||
uses: actions/checkout@v3 | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ matrix.idf_ver }} | ||
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} | ||
shell: bash | ||
run: | | ||
${IDF_PATH}/install.sh --enable-pytest | ||
. ${IDF_PATH}/export.sh | ||
python ./ci/build_apps.py ./components/esp_wifi_remote/${{matrix.test.path}} -vv --preserve-all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# The below file is generated from esp_wifi_types_native.h in IDF, which doesn't follow atyle | ||
components/esp_wifi_remote/include/esp_wifi_types_native.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
commitizen: | ||
bump_message: 'bump(wifi_remote): $current_version -> $new_version' | ||
pre_bump_hooks: python ../../ci/changelog.py esp_wifi_remote | ||
tag_format: wifi_remote-v$version | ||
version: 0.1.12 | ||
version_files: | ||
- idf_component.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changelog | ||
|
||
## [0.1.12](https://github.com/espressif/esp-protocols/commits/wifi_remote-v0.1.12) | ||
|
||
### Features | ||
|
||
- Added generation step for wifi_remote based on IDF ([dfb00358](https://github.com/espressif/esp-protocols/commit/dfb00358)) | ||
- Move to esp-protocols ([edc3c2d](https://github.com/espressif/esp-protocols/commit/edc3c2d)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
if(NOT CONFIG_ESP_WIFI_ENABLED) | ||
set(src_wifi_is_remote esp_wifi_remote.c esp_wifi_with_remote.c) | ||
endif() | ||
|
||
idf_component_register(INCLUDE_DIRS include | ||
SRCS ${src_wifi_is_remote} | ||
esp_wifi_remote_net.c | ||
esp_wifi_remote_weak.c | ||
REQUIRES esp_event esp_netif | ||
PRIV_REQUIRES esp_wifi) | ||
|
||
idf_component_optional_requires(PRIVATE esp_hosted) | ||
|
||
idf_component_get_property(wifi esp_wifi COMPONENT_LIB) | ||
target_link_libraries(${wifi} PUBLIC ${COMPONENT_LIB}) |
Oops, something went wrong.