Skip to content

Commit

Permalink
Merge pull request #180 from MathewHDYT/master
Browse files Browse the repository at this point in the history
Update allocation strategy to stack only
  • Loading branch information
imbeacon committed Jun 7, 2024
2 parents 22265f5 + d65f8a2 commit 3647e80
Show file tree
Hide file tree
Showing 82 changed files with 5,624 additions and 2,898 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/arduino-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- source-path: ./
- name: TBPubSubClient
- name: ArduinoHttpClient
- name: ArduinoJson
- { name: ArduinoJson, version: 6.21.4 }
- name: StreamUtils
- name: WiFiEsp
- name: TinyGSM
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/esp32-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- source-path: ./
- name: TBPubSubClient
- name: ArduinoHttpClient
- name: ArduinoJson
- { name: ArduinoJson, version: 6.21.4 }
- name: StreamUtils
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/esp8266-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- source-path: ./
- name: TBPubSubClient
- name: ArduinoHttpClient
- name: ArduinoJson
- { name: ArduinoJson, version: 6.21.4 }
- name: Seeed_Arduino_mbedtls
- name: StreamUtils
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/espidf-compile-v4.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Compile ESP-IDF Sketches for v4.4
on:
pull_request:
paths:
- ".github/workflows/espidf-compile.yml"
- ".github/workflows/espidf-compile-v*.yml"
- "examples/**"
- "src/**"
push:
paths:
- ".github/workflows/espidf-compile.yml"
- ".github/workflows/espidf-compile-v*.yml"
- "examples/**"
- "src/**"
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/espidf-compile-v5.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Compile ESP-IDF Sketches for v5.1
on:
pull_request:
paths:
- ".github/workflows/espidf-compile.yml"
- ".github/workflows/espidf-compile-v*.yml"
- "examples/**"
- "src/**"
push:
paths:
- ".github/workflows/espidf-compile.yml"
- ".github/workflows/espidf-compile-v*.yml"
- "examples/**"
- "src/**"
workflow_dispatch:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/espressif_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Push component to https://components.espressif.com

on:
push:
tags:
- v*

jobs:
upload_components:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Upload component to the component registry
uses: espressif/upload-components-ci-action@v1
with:
name: "thingsboard"
version: ${{ github.ref_name }}
namespace: "thingsboard"
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
39 changes: 39 additions & 0 deletions .github/workflows/generate_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build / Deploy doxygen documentation

on:
pull_request:
paths:
- ".github/workflows/generate_documentation.yml"
- "docs/**"
- "src/**"
push:
paths:
- ".github/workflows/generate_documentation.yml"
- "docs/**"
- "src/**"
workflow_dispatch:
repository_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build doxygen documentation
uses: mattnotmitt/doxygen-action@v1.9.5
with:
doxyfile-path: 'docs/Doxyfile'
working-directory: .

- name: Deploy doxygen documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/Doxygen/html
enable_jekyll: false
allow_empty_commit: false
force_orphan: true
publish_branch: gh-pages
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Prerequisites
*.d

# Build folder
/build

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,18 @@ 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/SDCard_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
Expand All @@ -42,4 +38,4 @@ if(ESP_PLATFORM)
return()
endif()

project(ThingsBoardArduinoSDK VERSION 0.12.0)
project(ThingsBoardClientSDK VERSION 0.13.0)
10 changes: 5 additions & 5 deletions Kconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
menu "ThingsBoard Arduino SDK Configurations"
menu "ThingsBoard Client 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"
bool "Replace static with dynami library usage"
default n
help
If this is disabled the library will use StaticJsonDocument to receive messages from the MQTT broker instead
If this is enabled the library will use DynamicJsonDocument to receive messages from the MQTT broker and use Vector to hold Subscription data instead of Arrays. Removing the need to declare MaxFieldsAmount, MaxSubscribtions, MaxAttributes and MaxRPC template arguments. But instead increasing heap allocation and usage drastically.

config THINGSBOARD_ENABLE_DEBUG
bool "Enables debug messages in the ThingsBoard client"
bool "Enable additional debug log messages"
default n
help
If this is enabled the library uses more global constant variables containg messages that are printed
If this is enabled the library uses more global constant variables, but will print more about the currently ongoing internal processes. Which might help debug certain issues.

endmenu
Loading

0 comments on commit 3647e80

Please sign in to comment.