Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MQTT with TLS #3427

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ jobs:
#run: echo "Testing... ${{ github.ref_name }}, ${{ steps.vars.outputs.sha_short }}" > ./sd-card/html/version.txt; mkdir -p ./code/.pio/build/esp32cam/; cd ./code/.pio/build/esp32cam/; echo "${{ steps.vars.outputs.sha_short }}" > firmware.bin; cp firmware.bin partitions.bin; cp firmware.bin bootloader.bin # Testing
run: cd code; platformio run --environment esp32cam

- name: Show used config
run: cd code; echo "Used config:"; cat sdkconfig.esp32cam

- name: Prepare Web UI (generate tooltip pages and update hashes in all files)
run: |
rm -rf ./html
Expand Down
77 changes: 47 additions & 30 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## [16.0.0-RC6] - 2024-x-x

For a full list of changes see [Full list of changes](https://github.com/jomjol/AI-on-the-edge-device/compare/v15.7.0...v16.0.0)

#### Known issues
Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues) and
[discussions](https://github.com/jomjol/AI-on-the-edge-device/discussions) before reporting a new issue.

#### Core Changes
Only changes since RC5 are listed:
- None

#### Bug Fixes
Only changes since RC5 are listed:
- [#3427](https://github.com/jomjol/AI-on-the-edge-device/pull/3427) Fixed MQTT with TSL


## [16.0.0-RC5] - 2024-12-05

For a full list of changes see [Full list of changes](https://github.com/jomjol/AI-on-the-edge-device/compare/v15.7.0...v16.0.0)
Expand All @@ -8,25 +25,25 @@ Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues

#### Core Changes
Only changes since RC4 are listed:
- Removed `Autostart` parameter and make the flow to be always enabled (#3423)
- Enable `Flow start` menu entry in UI (#3423)
- Updated the Homeassistant Discovery topics (#3332):
- [#3423](https://github.com/jomjol/AI-on-the-edge-device/pull/3423) Removed `Autostart` parameter and make the flow to be always enabled
- [#3423](https://github.com/jomjol/AI-on-the-edge-device/pull/3423) Enable `Flow start` menu entry in UI
- [#3332](https://github.com/jomjol/AI-on-the-edge-device/pull/3332) Updated the Homeassistant Discovery topics :
- `raw` has now set the `State Class` to `measurement`. Before it was always set to `""`.
- `value` has now only set the `State Class` to `total_increasing` if the parameter `Allow Negative Rates` is **not** set. Else it uses `measurement` since the rate could also be negative. Before it was always set to `total_increasing`.
- The `rate_per_time_unit` topic of an **Energy** meter needs a `Device Class`=`power`. For `gas` and `water` it should be `volume_flow_rate`. Before it was always set to `""`.
- Added button for `flow start` (#3415)
- Added support for Domoticz MQTT integration (#3359)
- [#3415](https://github.com/jomjol/AI-on-the-edge-device/pull/3415) Added button for `flow start`
- [#3359](https://github.com/jomjol/AI-on-the-edge-device/pull/3359) Added support for Domoticz MQTT integration
- Added Date and time to overview page
- Updated submodules and models

**:warning: Please check your Homeassistant instance to make sure it is handled correctly!**

#### Bug Fixes
Only changes since RC3 are listed:
- Added fix for ledintensity (#3418)
- Added fix for OV2640 brightness contrast saturation (#3417)
- Added fix for 'AnalogToDigitTransitionStart' always using 9.2 regardless of the configured value (#3393)
- Addef fix for HA menu entry (#3342)
Only changes since RC4 are listed:
- [#3418](https://github.com/jomjol/AI-on-the-edge-device/pull/3418) Added fix for ledintensity
- [#3417](https://github.com/jomjol/AI-on-the-edge-device/pull/3417) Added fix for OV2640 brightness contrast saturation
- [#3393](https://github.com/jomjol/AI-on-the-edge-device/pull/3393) Added fix for 'AnalogToDigitTransitionStart' always using 9.2 regardless of the configured value
- [#3342](https://github.com/jomjol/AI-on-the-edge-device/pull/3342) Added fix for HA menu entry


## [16.0.0-RC4] - 2024-10-06
Expand All @@ -39,13 +56,13 @@ Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues

#### Core Changes
Only changes since RC3 are listed:
- Update esp32-camera submodule to `v2.0.13` (#3316)
- Added contributor list (#3317)
- Added files for demo mode (#3315)
- [#3316](https://github.com/jomjol/AI-on-the-edge-device/pull/3316) Update esp32-camera submodule to `v2.0.13`
- [#3317](https://github.com/jomjol/AI-on-the-edge-device/pull/3317) Added contributor list
- [#3315](https://github.com/jomjol/AI-on-the-edge-device/pull/3315) Added files for demo mode

#### Bug Fixes
Only changes since RC2 are listed:
- Added delay in InitCam (#3313) to fix `Camera not detected` issues
- [#3313](https://github.com/jomjol/AI-on-the-edge-device/pull/3313) Added delay in InitCam to fix `Camera not detected` issues


## [16.0.0-RC3] - 2024-10-05
Expand All @@ -62,7 +79,7 @@ Only changes since RC2 are listed:

#### Bug Fixes
Only changes since RC2 are listed:
- Re-did revertion of TFlite submodule update as certain modules crash with it (#3269) (change was lost)
- [#3269](https://github.com/jomjol/AI-on-the-edge-device/pull/3269) Re-did revertion of TFlite submodule update as certain modules crash with it (change was lost)


## [16.0.0-RC2] - 2024-10-04
Expand All @@ -76,13 +93,13 @@ Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues
#### Core Changes
Only changes since RC1 are listed:
- Updated parameter documentation pages
- Rename/remove unused parameters (#3291)
- Migrate-cam-parameters (#3288)
- [#3291](https://github.com/jomjol/AI-on-the-edge-device/pull/3291) Rename/remove unused parameters
- [#3288](https://github.com/jomjol/AI-on-the-edge-device/pull/3288) Migrate-cam-parameters

#### Bug Fixes
Only changes since RC1 are listed:
- Reverted TFlite submodule update as certain modules crash with it (#3269)
- Changed the webhook UploadImg to false (#3279)
- [#3269](https://github.com/jomjol/AI-on-the-edge-device/pull/3269) Reverted TFlite submodule update as certain modules crash with it
- [#3279](https://github.com/jomjol/AI-on-the-edge-device/pull/3279) Changed the webhook UploadImg to false
- Changed default value from boolean to numeric value in parameter camDenoise documentation
- Updated config page

Expand All @@ -96,24 +113,24 @@ Please check the [issues](https://github.com/jomjol/AI-on-the-edge-device/issues

#### Core Changes
Those are just the major changes:
- Add support for OV5640 camera (#3063)
- [#3063](https://github.com/jomjol/AI-on-the-edge-device/pull/3063) Add support for OV5640 camera
- New tflite-Models
- Homeassistant service discovery: derive node_id when using nested topics (#3088)
- Added Prometheus/OpenMetrics exporter (#3081)
- Added Webhook (#3148, #3163, #3174)
- Add rate threshold parameter (#3195)
- Added a Delay between the WiFi reconnections (#3068)
- [#3088](https://github.com/jomjol/AI-on-the-edge-device/pull/3088) Homeassistant service discovery: derive node_id when using nested topics
- [#3081](https://github.com/jomjol/AI-on-the-edge-device/pull/3081) Added Prometheus/OpenMetrics exporter
- [#3148](https://github.com/jomjol/AI-on-the-edge-device/pull/3148), [#3163](https://github.com/jomjol/AI-on-the-edge-device/pull/3163), [#3174](https://github.com/jomjol/AI-on-the-edge-device/pull/3148), [#3163](https://github.com/jomjol/AI-on-the-edge-device/pull/3163), [#3174](https://github.com/jomjol/AI-on-the-edge-device/pull/3174) Added Webhook
- [#3195](https://github.com/jomjol/AI-on-the-edge-device/pull/3195) Add rate threshold parameter
- [#3068](https://github.com/jomjol/AI-on-the-edge-device/pull/3068) Added a Delay between the WiFi reconnections
- Web UI improvements
- Various minor changes
- Update platformIO to 6.9.0 (Contains ESP IDF 5.3.1)

#### Bug Fixes
Those are just the major changes:
- Handle crash on corrupted model (#3220)
- Bugfix for boot loop (#3175)
- Bugfix for time stamp (#3180)
- Handle empty prevalue.ini gracefully (#3162)
- Added note about only TLS 1.2 is supported (#3213)
- [#3220](https://github.com/jomjol/AI-on-the-edge-device/pull/3220) Handle crash on corrupted model
- [#3175](https://github.com/jomjol/AI-on-the-edge-device/pull/3175) Bugfix for boot loop
- [#3180](https://github.com/jomjol/AI-on-the-edge-device/pull/3180) Bugfix for time stamp
- [#3162](https://github.com/jomjol/AI-on-the-edge-device/pull/3162) Handle empty prevalue.ini gracefully
- [#3213](https://github.com/jomjol/AI-on-the-edge-device/pull/3213) Added note about only TLS 1.2 is supported

## [15.7.0] - 2024-02-17

Expand Down
2 changes: 2 additions & 0 deletions code/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ CONFIG_MQTT_USE_CORE_0=y
CONFIG_MQTT_USE_CUSTOM_CONFIG=y
#CONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS=5000
#CONFIG_MQTT_CUSTOM_OUTBOX=y # -> Use custom outbox in components/jomjol_mqtt/mqtt_outbox.h/cpp. If USE_PSRAM is enabled in there, it will save 10 kBytes of internal RAM. How ever it also leads to memory fragmentation, see https://github.com/jomjol/AI-on-the-edge-device/issues/2200
CONFIG_ESP_TLS_INSECURE=y
CONFIG_ESP_TLS_SKIP_SERVER_CERT_VERIFY=y

CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=n

Expand Down
Loading