Closed richardpowellus closed 5 years ago
Technically TasmoCompiler do not overwrite my_user_config.h
- git does.
When you hit Compile button, TasmoCompiler callsgit reset --hard
to throw away all uncommitted changes, to have clean, unmodified Tasmota source code for selected branch/version (all changes made before hitting Compile button will be discarded). Then TasmoCompiler create platformio.ini
, user_config_override.h
and starts compiling the source.
Since MQTT over TLS can be enabled only by editing/changing my_user_config.h
this has to be implemented in TasmoCompiler to make it work as expected.
For now, you can prepare my_user_config.h
file outside Tasmota source directory, and after hitting compile button you have to overwrite this file:
cp /home/dprus/my_user_config.h /tmp/Sonoff-Tasmota/sonoff
This is just idea for quick-fix, I haven't tested it.
Anyway, I will think about how to implement it in the future.
It looks like it is already solved: https://github.com/arendst/Sonoff-Tasmota/pull/6330 - so, from the current development
branch you can do this by user_config_override.h
file.
You can use then "Custom parameters" field to put your MQTT TLS related stuff.
I will add an option inside "Select features" step to allow to check "MQTT over TLS"
It is already implemented. You can try it.
Per this Github issue for Tasmota: https://github.com/arendst/Sonoff-Tasmota/issues/6084 in order to enable TLS support you need to set #define USE_MQTT_TLS in my_user_config.h directly (you cannot put it in the overrides file).
I'm using Tamocompiler in docker and even if open a shell and directly edit my_user_config.h, when I click "compile" all my changes to my_user_config.h get overridden.
So right now I can't use Tasmocompiler to build firmware with TLS support.
Can you either:
Thanks!