Open dinhchinh82 opened 1 year ago
Secure MQTT is supported by LWIP, but requirres a lot of RAM. I think it is worth to test it. EDIT: Changes would requirre:
It should be possible to enable it and do multiple builds per platform, for example one with secure connection enabled and one without it. It will be necessary over time as features grow and grow and the amount of flash memory we have is finite.
I will check LWIP if TLS is not already compiled. Normally during creating conenction to MQTT type is selected plain/secure and certificate must be loaded into RAM for TLS. From using MQTT SSL/TLS in ESP32 where LWIP is also used, I know that it requirres a lot of RAM. I think RAM shortage will be more in an issue than FLASH shortage.
EDIT: This will again re-surface problems with dynamic allocation, because if secure connection would have higher priority we would need to upgrade many static memory data to dynamic memory. So unused functions will not consume RAM.
Secure MQTT is supported by LWIP, but requirres a lot of RAM. I think it is worth to test it. EDIT: Changes would requirre:
- add configration for using secure connection
- confugration to store/change certificate
could you please check the whether orginal Tuya firmware which might be already supported MQTT over TLS? we hope to have testing version soon in near future.
Thank you so much.
First of all, thank you guys so much for supporting many new beken devices. I've tried to flash some new Tuya wifi devices and they work well with Home Assistant.
By the way, is it able to connect the Beken device direct to the remote MQTT server over TLS (secured connection) such as AWS MQTT broker ?
That would be good solution to make the wifi device can work independently without Home Assistant.