Closed FotoFieber closed 3 years ago
As the docs already tell, the standard build setup does not allow adding stuff to the tasmota32-xxxxxx environments, only to the base "tasmota32". Also, as webcam is already a very heavy task for ESP32, adding the also rather heavy TLS would not be a good mix.
I followed the docs for the MQTT TLS setup and added
to user_config_override.h
I didn't add stuff to tasmota32-xxxxxx environments.
You do. tasmota32-webcam is one of the tasmota-xxxxxx environments.
I did no modification to tasmota32-webcam.
I edited platformio_tasmota32.ini according to the description in the file:
; *** BETA ESP32 Tasmota version ***
; *** expect the unexpected. Some features not working!!! ***
[platformio]
; *** Tasmota build variant selection
default_envs = ${build_envs.default_envs}
; *** **Uncomment by deleting** ";" in the line(s) below to select version(s)
; tasmota32
tasmota32-webcam
Patched platformio_tasmota_env32.ini and it is compiling now.
[env:tasmota32-webcam] extends = env:tasmota32 board = esp32cam board_build.f_cpu = 240000000L build_flags = ${common32.build_flags} -DFIRMWARE_WEBCAM lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_ssl
Yes you did. Enabling TLS will affect all builds you do thereafter, and you specifically selected tasmota32-webcam. "Add stuff to" does not mean changing the definition of tasmota32-webcam, only doing changes leading to that target being amended.
What I mean is that what you experienced is working as designed, not an issue. While it is not impossible to go outside the standard build setup, webcam and TLS is still a bad combo for the small processor.
Maybe we can add a warning message when the USE_MQTT_TLS is enabled on an esp32_webcam and let the user decide, if he wants to use it or not?
I will test the stability of this setup. Space doesn't seem to be a problem:
RAM: [== ] 22.2% (used 72736 bytes from 327680 bytes)
Flash: [======= ] 67.5% (used 1370597 bytes from 2031616 bytes)
Using Tasmota without encryption is in my opinion a really bad practice unless you have a complete separate network. I have TLS enabled for MQTT on all my Tasmota devices. (And Web disabled.)
Closing this issue as it has been answered.
See Docs for more information. See Chat for more user experience. See Code of Conduct
PROBLEM DESCRIPTION
Target ESP32-webcam doesn't compile when USE_MQTT_TLS is defined.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Status 0
:TO REPRODUCE
Steps to reproduce the behavior:
Enable TLS for MQTT according to https://tasmota.github.io/docs/TLS/
Enable target tasmota32-webcam.
Build tasmota32-webcam.
EXPECTED BEHAVIOUR
Compile a binary.
SCREENSHOTS
` C:/Users/mm/Documents/PlatformIO/Tasmota-development-esp32/tasmota/tasmota.ino:45:25: fatal error: t_bearssl.h: No such file or directory
include // We need to include before "tasmota_globals.h" to take precedence over the BearSSL version in Arduino
compilation terminated. [.pio\build\tasmota32-webcam\src\WiFiClientSecureLightBearSSL.cpp.o] Error 1 [.pio\build\tasmota32-webcam\src\tasmota.ino.cpp.o] Error 1`
ADDITIONAL CONTEXT
Compilation is then aborted.
(Please, remember to close the issue when the problem has been addressed)