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 #148 from MathewHDYT/feat_mqtt_interface
Adding complete Espressif IDF compatibility
- Loading branch information
Showing
98 changed files
with
4,300 additions
and
932 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
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,38 @@ | ||
name: Compile ESP-IDF Sketches for v4.4 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/espidf-compile.yml" | ||
- "examples/**" | ||
- "src/**" | ||
push: | ||
paths: | ||
- ".github/workflows/espidf-compile.yml" | ||
- "examples/**" | ||
- "src/**" | ||
workflow_dispatch: | ||
repository_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- name: Build send data example on v4.4 | ||
uses: espressif/esp-idf-ci-action@v1 | ||
with: | ||
esp_idf_version: v4.4 | ||
target: esp32 | ||
path: 'examples/0014-espressif_esp32_send_data' | ||
- name: Build process OTA over MQTT example on v4.4 | ||
uses: espressif/esp-idf-ci-action@v1 | ||
with: | ||
esp_idf_version: v4.4 | ||
target: esp32 | ||
path: 'examples/0015-espressif_esp32_process_OTA_MQTT' |
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,38 @@ | ||
name: Compile ESP-IDF Sketches for v5.1 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/espidf-compile.yml" | ||
- "examples/**" | ||
- "src/**" | ||
push: | ||
paths: | ||
- ".github/workflows/espidf-compile.yml" | ||
- "examples/**" | ||
- "src/**" | ||
workflow_dispatch: | ||
repository_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- name: Build send data example on v5.1 | ||
uses: espressif/esp-idf-ci-action@v1 | ||
with: | ||
esp_idf_version: v5.1 | ||
target: esp32 | ||
path: 'examples/0014-espressif_esp32_send_data' | ||
- name: Build process OTA over MQTT example on v5.1 | ||
uses: espressif/esp-idf-ci-action@v1 | ||
with: | ||
esp_idf_version: v5.1 | ||
target: esp32 | ||
path: 'examples/0015-espressif_esp32_process_OTA_MQTT' |
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,45 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
|
||
set(srcs | ||
src/Arduino_HTTP_Client.cpp | ||
src/Arduino_MQTT_Client.cpp | ||
src/Attribute_Request_Callback.cpp | ||
src/Callback_Watchdog.cpp | ||
src/Arduino_ESP32_Updater.cpp | ||
src/Arduino_ESP8266_Updater.cpp | ||
src/Espressif_Updater.cpp | ||
src/Espressif_MQTT_Client.cpp | ||
src/HashGenerator.cpp | ||
src/Helper.cpp | ||
src/OTA_Update_Callback.cpp | ||
src/Provision_Callback.cpp | ||
src/RPC_Callback.cpp | ||
src/RPC_Request_Callback.cpp | ||
src/RPC_Response.cpp | ||
src/Shared_Attribute_Callback.cpp | ||
src/Telemetry.cpp | ||
src/ThingsBoardDefaultLogger.cpp | ||
) | ||
|
||
set(dependencies | ||
mqtt | ||
mbedtls | ||
) | ||
|
||
set(private_dependencies | ||
esp_timer | ||
) | ||
|
||
if(ESP_PLATFORM) | ||
# Build ThingsBoard Arduino SDK as an ESP-IDF component | ||
idf_component_register( | ||
SRCS ${srcs} | ||
INCLUDE_DIRS "src" | ||
PRIV_INCLUDE_DIRS "src" | ||
REQUIRES ${dependencies} | ||
PRIV_REQUIRES ${private_dependencies} | ||
) | ||
return() | ||
endif() | ||
|
||
project(ThingsBoardArduinoSDK VERSION 0.12.0) |
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 @@ | ||
menu "ThingsBoard Arduino SDK Configurations" | ||
|
||
config THINGSBOARD_ENABLE_DYNAMIC | ||
bool "Removes the need to set MaxFieldAmts in template class, but saves json into DynamicJsonDocument, requiring heap instead of stack memory" | ||
default n | ||
help | ||
If this is disabled the library will use StaticJsonDocument to receive messages from the MQTT broker instead | ||
|
||
config THINGSBOARD_ENABLE_DEBUG | ||
bool "Enables debug messages in the ThingsBoard client" | ||
default n | ||
help | ||
If this is enabled the library uses more global constant variables containg messages that are printed | ||
|
||
endmenu |
Oops, something went wrong.