关于 docker nodemcu-build 的一般问题

General questions about docker nodemcu-build

关于 docker nodemcu-build 过程的一些一般问题:

  1. 有没有办法指定构建中包含哪些模块? (类似于云构建服务的工作方式)

  2. 有没有一种方法可以包含在生成的固件为 运行 时出现的描述?

  3. 是否启用了 SSL?

  4. docker nodemcu-build 进程(来自 dev 分支源)创建的 bin 文件的大小为 405k。最近使用云服务构建的 bin 文件大小为 444k。云服务构建仅包含以下模块:cjson、file、gpio、http、net、node、tmr、uart、wifi、ssl。为什么包含所有模块(?)的 docker build bin 文件小于仅包含 10 个模块的 cloud build bin 文件? (我担心我的本地 docker 构建版本缺少某些东西 - 即使构建过程没有错误)。

  1. 您可以通过在源代码树的 /app/include/user_modules.h 文件中取消注释来指定要构建的模块。源代码树的默认构建相对最小 - 不是 "all modules" 构建。

  2. 连接处的横幅是 "Version" 字段。 nodemcu-build.com 构建将此更改为自定义文本。它在 /app/include/user_version.h 中定义为 USER_VERSION 定义。您需要在字符串中嵌入“\n”换行符以获得单独的行。

  3. 是的,Net模块可以通过定义CLIENT_SSL_ENABLE来包含limited SSL support (TLS 1.1 only) (TLS 1.2 in dev per Marcel's comment below). You need to enable it in /app/include/user_config.h

  4. user_modules.h / user_config.h 中的默认模块和配置设置与 nodemcu-build.com 上的默认设置不同,因此构建不太可能是开箱即用。